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: ['85', '101', 'j', 'g', 'o', 'f', 'w', 'o', 'm', '45', 'e', 'z']

SOLUTION: 0, 1, 4, 5, 8

PROBLEM: ['s', 'd']

SOLUTION: -1

PROBLEM: ['301', '249', 'd', '159', '331', 'j', 'd', '291', '101', 'n', '125', '265']

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