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:
['z', 'v', 't', 'm', '51', 'e', 'l', 'l', '83', '301', '21', '347', 'm', '41', 'b']
answer:
0, 1, 2, 3, 4, 5, 7, 8


question:
['353', 'y', 'a', 'g', '141', '97', '457', '297', '25', 'g', '131', 'u', '303', '39', 'p']
answer:
0, 1, 2, 3, 4, 5, 7, 9


question:
['31', 'r', '223', '297', '359', '95', '89', 'r', '337', '399']
answer:

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