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:
['395', 'p', '373']
answer:
3, 5, 7, 9


question:
['t', 'u', 'e', 'a', '369', 'e', 'r', 'm']
answer:
3, 6, 9


question:
['243', 'z', 'x', 'b', 'y', '385', 'v', '23', '9', 'a', '121', '231', 'c', '407']
answer:

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