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.

Ex Input:
['85', '101', 'j', 'g', 'o', 'f', 'w', 'o', 'm', '45', 'e', 'z']

Ex Output:
0, 1, 4, 5, 8


Ex Input:
['q', 'p', 'y', 'p', 'k', 'r', '481', 'v']

Ex Output:
1, 4, 8


Ex Input:
['r', '393', '365', 'd', 'a']

Ex Output:

3, 5, 6, 9


