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:
['497', '21', '239', '487', '149', 'q']
answer:
1, 2, 3, 4, 7, 8, 9


question:
['t', '493', 's', 'f', '279', 'f']
answer:
2, 3, 4, 7, 9


question:
['w', 'u', '281', '371', 'j', '35', 's', '345', 'z', 'w', '423']
answer:

1, 2, 3, 4, 5, 7, 8