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:
['r', '273', 'h', '421', 'k', 'r', 'k', 't', 'x', 's', 'j']
answer:
1, 2, 3, 4, 7


question:
['109', 'b']
answer:
0, 1, 9


question:
['q', '31', 'd', 'z', 'f', 'd', '135', '457', '299', '343']
answer:

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