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: ['z', 'l', 's', '249', 'e', 'h', 'l']

Answer: 2, 4, 9


Question: ['389', 'v', '17', 'n', 'm']

Answer: 1, 3, 7, 8, 9


Question: ['7', '293', 'e', '367', '111', '255', 'q', 'x', 's', 'j', '377', '77']

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