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


question:
['291', '445', 'q', 't']
answer:
1, 2, 4, 5, 9


question:
['99', 'd', '447', 'q', '441', 'i', 'v', 'q', '373', 'd', '195', 'z']
answer:

1, 3, 4, 5, 7, 9