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: ['i', '325', '117', 'k', 'y', 'x', '49', '349', '477', 'u', '435']

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

PROBLEM: ['401', 'a', '273', 'c', '117', 'x', 'b', 'h', 's', 'v']

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

PROBLEM: ['353', 'u', 'x', 'p', 'w', 'v', 'r', 'c', 'c', '63']

SOLUTION:
3, 5, 6