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:
['h', 'e', 'v']
answer:
-1


question:
['b', 'm', '471']
answer:
1, 4, 7


question:
['k', 'n', '243', '87', '147', '317', '369', '389', '151', '5', 'w', 'i', '49', 'q']
answer:

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