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: ['343', '471', 'z', 'e', 'z', '351']

SOLUTION: 1, 3, 4, 5, 7

PROBLEM: ['151', 'j', 'o', 's', 'q', 'r', '325']

SOLUTION: 1, 2, 3, 5

PROBLEM: ['491', 'e', 'r', 'i', 'n']

SOLUTION:
1, 4, 9