TASK DEFINITION: In this task, you are given inputs i and A, where i is an integer and A is a list. You need to list all the elements of A preceding the last i elements. i will always have a value less than the length of A.
PROBLEM: 5, ['5973', 'V', '2031', 'H', '6779', '8931', 'H', 'Z', '7833', 'P', '1749']

SOLUTION: 5973, V, 2031, H, 6779, 8931

PROBLEM: 5, ['5315', '8773', 'Z', '4873', 'r', '2929', 'K', 'y', '4997', '6739', 'U', 'j']

SOLUTION: 5315, 8773, Z, 4873, r, 2929, K

PROBLEM: 1, ['9767', 'z']

SOLUTION:
9767