TASK DEFINITION: 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.
PROBLEM: ['345', 'k']

SOLUTION: 3, 4, 5

PROBLEM: ['a', '55', 's', '71', '271', '211']

SOLUTION: 1, 2, 5, 7

PROBLEM: ['k', '49', 'r', '69', '205', '65', '113', 't', 'a', 'h', 'n', 'g', '207']

SOLUTION:
0, 1, 2, 3, 4, 5, 6, 7, 9