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:
['23', 'p', '409', '305', 'z', 'q', '295', '391']
answer:
0, 1, 2, 3, 4, 5, 9


question:
['487', 'x']
answer:
4, 7, 8


question:
['99', 'a', '355', 'd', '317', '219', 'd', '329', 'v', '265', 'e', '63', 'k', 'l', '109']
answer:

0, 1, 2, 3, 5, 6, 7, 9