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:
['43', '479', '317', 'w', '475', '255', '3', 'x']
answer:
1, 2, 3, 4, 5, 7, 9


question:
['m', 'c', '139', '433', '29', 'z', '45', 't', 'a', 'n', '297', '45', '281']
answer:
1, 2, 3, 4, 5, 7, 8, 9


question:
['345', 'e', '49', 'j', '251', '437', 'f']
answer:

1, 2, 3, 4, 5, 7, 9