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: ['197', 'p', 'e', '217', '327', '439', '59', 'o', '355', 'z']

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

PROBLEM: ['v', 'w', '125', 'r', 'a', '309', '259', 'c', 'a', 'c', 'w', '273', '279']

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

PROBLEM: ['109', 'j', '485', 'v', 'g', '489', 'a', '231', '481', 'h', '365', '231', '399', 'c', 'l']

SOLUTION:
0, 1, 2, 3, 4, 5, 6, 8, 9