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: ['185', '425']

Answer: 1, 2, 4, 5, 8


Question: ['n', '149', 'z', '37']

Answer: 1, 3, 4, 7, 9


Question: ['97', '151', '449', 'y', 'r', 'b', '139', '395']

Answer:
1, 3, 4, 5, 7, 9