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:
['q', 'u', '199', 'v', '249']
answer:
1, 2, 4, 9


question:
['s', '291', '257', 'w', '497', '309']
answer:
0, 1, 2, 3, 4, 5, 7, 9


question:
['229', 'a', '19', 'k', '121', '173', '391', 'o', 'a', 'v', 'r', '29', 'm']
answer:

1, 2, 3, 7, 9