instruction:
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:
['d', '71', '65', '177', 'k']
answer:
1, 5, 6, 7


question:
['421', '99', '115', 'x']
answer:
1, 2, 4, 5, 9


question:
['l', '69', '417', 'm', '215', '33', '229', 's', 'r', 'q', '45', 'a', 'p', '7', 'z']
answer:

1, 2, 3, 4, 5, 6, 7, 9