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: ['o', 'f', 'm', 'w', 'w', 'y', 'b']

Answer: -1


Question: ['h', 'l', '43', 'b', 'g', '265', '355', 'y']

Answer: 2, 3, 4, 5, 6


Question: ['1', 'a', '403', '157', 's', 'p', 'x', 'm', '239', '421']

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