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, ['1955', 'I', '5255', '3981', '9087', '5705', 'l', 'n', 'd', '2359', '9199']

SOLUTION: 1955, I, 5255, 3981, 9087, 5705

PROBLEM: 9, ['3263', '9551', 'x', 'C', 'I', 'J', 'Z', '1139', '171', '237', 'V', 'Y', '2109', '7481', 'q', 'h', '9631', 'o', '9295']

SOLUTION: 3263, 9551, x, C, I, J, Z, 1139, 171, 237

PROBLEM: 6, ['Z', 'N', 'h', 't', 'n', '6707', 'f', '8735', '8245', '8029', 'V', 'o', 'I', 'q', 'Z', 'Q']

SOLUTION:
Z, N, h, t, n, 6707, f, 8735, 8245, 8029