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: ['k', '217']

SOLUTION: 1, 2, 7

PROBLEM: ['429', 'a', 'g', '7', 'j', 'd', 'y', '113']

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

PROBLEM: ['253', 'h', '427', 'p', '173', '259', 'q', 'b', 'u', 'c', 'c', '5', '353', 's', '303']

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