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: ['255', 'u', 's', 'g', '445']

SOLUTION: 2, 4, 5

PROBLEM: ['433', '133', '255', 'h', '59', 'm', '315', '149', 't', 'y', 'n', '59', '493', '295']

SOLUTION: 1, 2, 3, 4, 5, 9

PROBLEM: ['117', '473', 'x', '353', 'j', '423', '461', '321', 's', 'c', '219', '27']

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