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: ['t', 'p', 'u', 'a']

SOLUTION: -1

PROBLEM: ['185', '425']

SOLUTION: 1, 2, 4, 5, 8

PROBLEM: ['b', 'q', '3', 'k', '373', 'y', '157', 'p', 'l', 'd', '313']

SOLUTION:
1, 3, 5, 7