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:
['377', 'z', '421', '137', 't', 'v', 's', 'l']
answer:
1, 2, 3, 4, 7


question:
['357', 'c', 'f', '3', 'q', 'w', 'm', 'l', '137', 'k']
answer:
1, 3, 5, 7


question:
['x', '113', 'f', '39', '343', '237']
answer:

1, 2, 3, 4, 7, 9