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', '153', '13']

Answer: 1, 3, 5


Question: ['25', 'b', '455', 'n', '305', '271']

Answer: 0, 1, 2, 3, 4, 5, 7


Question: ['q', 'o', 'e', '239', '55', 'f', 'a', 'r', 't', '29', 'j', '267', '211']

Answer:
1, 2, 3, 5, 6, 7, 9