TASK DEFINITION: In this task, you are given an input list A. You need to extract and sort the unique digits used in the list in ascending order. Return -1 if there is no digit in the list.
PROBLEM: ['r', '135', 't', 'm', 'f', '329', '475', '243', 'z', 'q', '31', '141']

SOLUTION: 1, 2, 3, 4, 5, 7, 9

PROBLEM: ['371', '459', '9', 'j', '425', 'k', '495', 'x', '105', '49', 'j', '101', 's']

SOLUTION: 0, 1, 2, 3, 4, 5, 7, 9

PROBLEM: ['149', '487', 'q', '429', '155', '433', '473', '387', 'b', '303', 'd', '471', 't', 'r', 't']

SOLUTION:
0, 1, 2, 3, 4, 5, 7, 8, 9