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: ['473', '449', '357', 'p', 'p', 'e', '377', '77']

Answer: 3, 4, 5, 7, 9


Question: ['221', '191', 'w', 'l', 'h', 'a']

Answer: 1, 2, 9


Question: ['57', '113', 'h', 'n', '423', '315', '461', 'g', 'x', 'k', 'k', 'e']

Answer:
1, 2, 3, 4, 5, 6, 7