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: ['d', '395', 'd', '233', '271']

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

PROBLEM: ['175', 'c', 'c']

SOLUTION: 1, 5, 7

PROBLEM: ['291', 'b', '179', 'n', 'c', '113']

SOLUTION:
1, 2, 3, 7, 9