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:
['233', '37', '221', 'n', 'j', 'y', '381', '175']
answer:
1, 2, 3, 5, 7, 8


question:
['t', 'y', '331']
answer:
1, 3


question:
['z', '151', 'a', '275', '233', '313', 'b', '497', 'z', '495', 'q', 'o', '477', '493']
answer:

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