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:
['o', 'f', 'm', 'w', 'w', 'y', 'b']
answer:
-1


question:
['469', 'y', 'j', 'u', '475', 'k', 'k']
answer:
4, 5, 6, 7, 9


question:
['z', '377', '377', '9', 'i', 'g', '323', 'n', '113', '1', 'f', 'f']
answer:

1, 2, 3, 7, 9