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: 3, ['M', '3663', '101', 'p', 'T', 'J', 'N', '7915', '5897', 'm', 'g', '3357', 'j', 'S', '7271', 'B', '4625', '7827', 'w', 'B', '8123', '6623']

SOLUTION: M, 3663, 101, p, T, J, N, 7915, 5897, m, g, 3357, j, S, 7271, B, 4625, 7827, w

PROBLEM: 2, ['4441', 'u', 'w', 'Q', '6763', '5673', '5773', '4745', 'q', 't', 'h', '2549', 'z', '6339', '1513', '3087', '7863', '7953', '9537', 'U', '3397', '6651', 'q', 'x', '8677', '8103']

SOLUTION: 4441, u, w, Q, 6763, 5673, 5773, 4745, q, t, h, 2549, z, 6339, 1513, 3087, 7863, 7953, 9537, U, 3397, 6651, q, x

PROBLEM: 2, ['X', '2485', 'g', '1987', 'P', '8143', 'h', 'T', 'H', '9641', 'X', '7059', '7715', 'N', '3303', '997', '6771', 'p', 'P', 'Q', 'Y', '7857', 'z', '7437', '7717', 'l', '9149', 'l', '6293']

SOLUTION:
X, 2485, g, 1987, P, 8143, h, T, H, 9641, X, 7059, 7715, N, 3303, 997, 6771, p, P, Q, Y, 7857, z, 7437, 7717, l, 9149