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: ['z', 'b', 'c', 'l', '453', 'h', '215', '447', '487', 'p', 'y', 'v']

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

PROBLEM: ['w', 'p', 'r', 'v', 'd']

SOLUTION: -1

PROBLEM: ['391', 'c', 'l', '317', '417', 'n', 'm', '439']

SOLUTION:
1, 3, 4, 7, 9