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: ['387', '7', '93', '105', '181']

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


Question: ['353', 'k', 'j', '1', '375', 'e', 'd']

Answer: 1, 3, 5, 7


Question: ['53', '295', '345', '31', 'l', '305', '103']

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