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:
['k', '107', '333', '317', 'm', 'w', 'g', 'f']
answer:
0, 1, 3, 7


question:
['t', '251', 'b', '241', 'z', '255']
answer:
1, 2, 4, 5


question:
['317', 'r', '407', '65', '407', '239', 'd', '71', 'u', 'l', 'y']
answer:

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