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: 4, ['781', 'x', 'v', 'G', 'k', '4317', '6855', 'D', 'S', 'z', '8161', '2497', '255', 'N', 'F', 'X', 'W', 'D', '2873', '8385', 'M', '8043', 'z']

SOLUTION: 781, x, v, G, k, 4317, 6855, D, S, z, 8161, 2497, 255, N, F, X, W, D, 2873

PROBLEM: 3, ['Z', 't', '8689', 'j', '7065', 'g', 'i', '5261', '7243', 'z', 'Q', 'V', '9083', 'L', 'X', '4439']

SOLUTION: Z, t, 8689, j, 7065, g, i, 5261, 7243, z, Q, V, 9083

PROBLEM: 10, ['R', '715', 'n', '1723', 'P', 'R', '5521', '7225', 'a', '3959', 'y', 'e', '8873', '6403', 'E', '3159', 'e', '9919', 'V', 'v', 'q', 'd', 'U', '3573', '9787', 'Q', 'j']

SOLUTION:
R, 715, n, 1723, P, R, 5521, 7225, a, 3959, y, e, 8873, 6403, E, 3159, e