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: 2, ['v', 'l', 'a', '4761', '3467', 'd', 'i', '4703', 'Y']

SOLUTION: v, l, a, 4761, 3467, d, i

PROBLEM: 4, ['5555', '403', 'a', '7381', 'Q', 'h', '1825', 'e', '9281', '5277', '2639', '8775', '7623']

SOLUTION: 5555, 403, a, 7381, Q, h, 1825, e, 9281

PROBLEM: 5, ['9639', '5723', 'S', 'w', '2375', '8185', '1283', 'h', '4221', 'p', 'f']

SOLUTION:
9639, 5723, S, w, 2375, 8185