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.
--------
Question: ['229', 'x', '49', 'p', '73', '77', '337', '497']

Answer: 2, 3, 4, 7, 9


Question: ['x', 'x', '145', 'p', '11', 'j', 'e', '93', '213', '89', '445', 'z', 'z']

Answer: 1, 2, 3, 4, 5, 8, 9


Question: ['u', 'h', '375', '303', '97', 'b', '191', 'x', '499', 'y', 'o']

Answer:
0, 1, 3, 4, 5, 7, 9