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: ['p', '121', '55', '205', 'n', '393', 'l', 's', 'k', 'c', 'n']

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


Question: ['153', 'b', 'w', 'y', 'k', '385', '221', '153', 'b', '123', 'd', '151', 'y']

Answer: 1, 2, 3, 5, 8


Question: ['l', '141', 's', '335', 'k', 'k', 'g', '449', '305', '117', '205']

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