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: 9, ['M', '5097', 'b', 'W', '4627', 'i', 's', 'H', '3203', 'V', '2689', 'Y', 'G', 'G', 'O', '7913', '4265', '5203', '8085', 'c', '6847', '7825', 'O', 'K', '8371', '8899', '7721', '6695', 'r', 'q']

SOLUTION: M, 5097, b, W, 4627, i, s, H, 3203, V, 2689, Y, G, G, O, 7913, 4265, 5203, 8085, c, 6847

PROBLEM: 3, ['C', 'k', '2161', '5417', '4853', 'K', '5945', '2563', 'o', '6347', 'q', 'H', 'N', 'E', '859', 'P', 'n', 'G', '419', 'V', 'P', 'F', 'F', '7319', '1211', 'J', 'J', '8489', '5181', '2647']

SOLUTION: C, k, 2161, 5417, 4853, K, 5945, 2563, o, 6347, q, H, N, E, 859, P, n, G, 419, V, P, F, F, 7319, 1211, J, J

PROBLEM: 2, ['e', '4609', '5355', 'y', 'y', '9023', 't', '8877', '4737', '1815', 'W']

SOLUTION:
e, 4609, 5355, y, y, 9023, t, 8877, 4737