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, ['Z', '1867', '3395', '4065', 'a', 'f', 'X', 'V', 'R', 'P', 'g', '2191', '933', '7691', '4161', 'P', 'r', '4905', '251', 'r', 'j', '5105', '1141']

SOLUTION: Z, 1867, 3395, 4065, a, f, X, V, R, P, g, 2191, 933, 7691, 4161, P, r, 4905, 251, r

PROBLEM: 2, ['8817', '3439', '8059', '703', '5885', '3175', 'x', '7971', 'f', '3897', 'e', 'B', '6923', 'Y', 'z', 'D', 'Z']

SOLUTION: 8817, 3439, 8059, 703, 5885, 3175, x, 7971, f, 3897, e, B, 6923, Y, z

PROBLEM: 1, ['8265', '9197', 'D', '1843', '2885', 'W', 'P', '5829', 'm', 's', '1935']

SOLUTION:
8265, 9197, D, 1843, 2885, W, P, 5829, m, s