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:
['477', 'a', 'n', 'r', '457', 'g', 'c']
answer:
4, 5, 7


question:
['b', '329', 'm', 'q', 'k', 'z', 'k', '199', 'v', 'l']
answer:
1, 2, 3, 9


question:
['r', '161', '149', 'u']
answer:

1, 4, 6, 9