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: ['j', 'v', 'q', '393', 'z', 'l', 'g', 'q', '193']

SOLUTION: 1, 3, 9

PROBLEM: ['t', '419', 'f']

SOLUTION: 1, 4, 9

PROBLEM: ['p', 'b', 'f', '287', '371', '157', '145', '159', 'c', 'l', '75']

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