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: ['a', '55', 's', '71', '271', '211']

SOLUTION: 1, 2, 5, 7

PROBLEM: ['73', '215', '389', '381', 'e', 'v', 'j', 'l', 'r']

SOLUTION: 1, 2, 3, 5, 7, 8, 9

PROBLEM: ['17', '233', 'f', 'y', 'e', '91', '225', 'h', 'j']

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