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: ['b', '329', 'm', 'q', 'k', 'z', 'k', '199', 'v', 'l']

Answer: 1, 2, 3, 9


Question: ['157', '481', 'n', 't', 'd', 'j']

Answer: 1, 4, 5, 7, 8


Question: ['m', 'w', '85', 'y', 'p', 'g', '49', 'r', 'x', 't', '17', 'g', '257']

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