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:
['r', '233']
answer:
2, 3


question:
['475', 'j', '19', 'j', '325']
answer:
1, 2, 3, 4, 5, 7, 9


question:
['d', 'n', 'l', '287', 'j', 'o', '81', '319']
answer:

1, 2, 3, 7, 8, 9