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, ['9331', '9975', 'G', 'p', '2841', 'U', 'n', 'f', 'w', 'l']

SOLUTION: 9331, 9975, G, p, 2841

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, ['h', '4525', '3549', '8663', 'r', '2129', '8885', 'E', 'r', 'r', '5133', '163', 'G', '9417', 'O']

SOLUTION:
h, 4525, 3549, 8663, r, 2129, 8885, E, r, r