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: ['239', '439']

Answer: 2, 3, 4, 9


Question: ['u', 'z', 'p', '99', 'b']

Answer: 9


Question: ['211', 'j', 'm', '445', 'w', 'z', '251', 'e', '361', 'a']

Answer:
1, 2, 3, 4, 5, 6