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:
['n', 'g', 'd']
answer:
-1


question:
['175', 'c', 'c']
answer:
1, 5, 7


question:
['o', 'x', 'y', 'd', 'v', 'j', '231', '455', '17', 'b', '407', 'k', '279', 'h']
answer:

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