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: ['z', 'e', 'c']

Answer: -1


Question: ['475', '19', 'k', '307', '417']

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


Question: ['299', '93', 'u', 's', 'q', '113', 'w', '191', 'j', '179']

Answer:
1, 2, 3, 7, 9