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: ['t', '251', 'b', '241', 'z', '255']

Answer: 1, 2, 4, 5


Question: ['95', '205', 'c', '101']

Answer: 0, 1, 2, 5, 9


Question: ['245', '427', 'q', '405']

Answer:
0, 2, 4, 5, 7