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:
['159', '3', 'f', 'k', 'o', 'm']
answer:
1, 3, 5, 9


question:
['a', '441', '227', 'j', '13', '277', 'f', 'o']
answer:
1, 2, 3, 4, 7


question:
['w', 'm', 'q', 'l', '297', 'y', '63', 'd', 'y']
answer:

2, 3, 6, 7, 9