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: ['v', 'r', '67', '49']

SOLUTION: 4, 6, 7, 9

PROBLEM: ['d', '25', '323', 'k', 'e']

SOLUTION: 2, 3, 5

PROBLEM: ['455', '483', '139', 'o', '137', '417', 'h']

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