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: ['299', '371', '313', '17', 't', 'q']

SOLUTION: 1, 2, 3, 7, 9

PROBLEM: ['x', '325', 'i', 'n', 'i', 'w', 't']

SOLUTION: 2, 3, 5

PROBLEM: ['141', '301', 'q', 'v', '169', 'h', 'c', '455', 'e', 'g', '299', '285', 'w']

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