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:
['h', '475', 'x', '53', '461', 'c']
answer:
1, 3, 4, 5, 6, 7


question:
['339', '473', '485']
answer:
3, 4, 5, 7, 8, 9


question:
['315', '167', 'h', 'i', 'y']
answer:

1, 3, 5, 6, 7