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:
['a', '55', 's', '71', '271', '211']
answer:
1, 2, 5, 7


question:
['345', 'h', '9']
answer:
3, 4, 5, 9


question:
['497', '477', '357', 'f', 'y', '127', 't', 's', '265', '143', '307', 'p', 'u']
answer:

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