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: ['k', 'k', 'o', 'c', 'p', '301', 'o']

Answer: 0, 1, 3


Question: ['j', 'k']

Answer: -1


Question: ['a', '301', 'c', 'i', 'c', '323']

Answer:
0, 1, 2, 3