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: ['43', 'n', 's', '453', 'c', '205']

SOLUTION: 0, 2, 3, 4, 5

PROBLEM: ['i', 'f', '409', 'c', '83']

SOLUTION: 0, 3, 4, 8, 9

PROBLEM: ['r', '393', '365', 'd', 'a']

SOLUTION:
3, 5, 6, 9