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: ['229', '369', 'c', '7', 'f', 'h', '455', 't', '249', 's']

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

PROBLEM: ['i', 'f', '409', 'c', '83']

SOLUTION: 0, 3, 4, 8, 9

PROBLEM: ['157', '271', '411', '449', 'l', 'w', '431', 'y', 'w', 't', '275', 'b', 'l', '39', 'm']

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