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:
['203', 'p', 'r', 'r', 'c', 'w', 'z', 'w', 'a', '203', 'n']
answer:
0, 2, 3


question:
['t', '211', 'h', '99']
answer:
1, 2, 9


question:
['n', '299', '493', '489']
answer:

2, 3, 4, 8, 9