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: ['189', 'z']

SOLUTION: 1, 8, 9

PROBLEM: ['m', '107']

SOLUTION: 0, 1, 7

PROBLEM: ['221', '429', '295', '259', '35', 'x', 'x', '159', 'j', '453']

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

