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', 'e', 'c']

SOLUTION: -1

PROBLEM: ['s', 'y', '133', 'c', '415', 'p']

SOLUTION: 1, 3, 4, 5

PROBLEM: ['361', 'w', 'l', '283', 'r', 't', 'p', 'i', '451', 'c', '229', '245', 'p', '253']

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