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:
['271', '9', 'v', '93', 'f', 'd']
answer:
1, 2, 3, 7, 9


question:
['397', 'x', 'e', '179', '105', '381']
answer:
0, 1, 3, 5, 7, 8, 9


question:
['409', '417', 'y', '147', '427', '219', '91', 'c', 'i', 'n']
answer:

0, 1, 2, 4, 7, 9