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:
['g', '169', '93', 'z', 'h', '493', 'r']
answer:
1, 3, 4, 6, 9


question:
['f', 't', 'a', '163', '297', '97', '487', '341', '193']
answer:
1, 2, 3, 4, 6, 7, 8, 9


question:
['x', 't', '315', '321', 't', '171', 'p', '393', '239', '233', 'q', 'n', '249']
answer:

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