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:
['k', 'q', 'a', 'u', 'q']
answer:
-1


question:
['433', '133', '255', 'h', '59', 'm', '315', '149', 't', 'y', 'n', '59', '493', '295']
answer:
1, 2, 3, 4, 5, 9


question:
['a', '131', 'q', 'd', '207', '221', '15', '267', '299', 'b', '381', 'f', '307', 'v']
answer:

0, 1, 2, 3, 5, 6, 7, 8, 9