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

SOLUTION: -1

PROBLEM: ['j', '379', 'x', '51', 'k', 'r', 'i', '233', '363', '69', 'v', 'q', '151']

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

PROBLEM: ['467', 'm', 'g', 'q', 'c', 'a', '459', 'l', 'v', '245', 'p', '489', 'f', '241']

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