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: 1, ['i', '1499', '4503', '195', 'x', 'h', 'x', '9265', 'O', 'p', '5391', 'y', 'C', '6211', 'Y', '7911', 'r']

SOLUTION: i, 1499, 4503, 195, x, h, x, 9265, O, p, 5391, y, C, 6211, Y, 7911

PROBLEM: 11, ['e', '8171', 'J', '5119', '8649', 'Y', '8227', 'e', 'd', 'e', '7543', 'Q', '1181', 'E', 'z', '4183', 'q', '6261', '6159', 'l', '6315', '3225', '1479', 'i', '2827', '2231', 'l']

SOLUTION: e, 8171, J, 5119, 8649, Y, 8227, e, d, e, 7543, Q, 1181, E, z, 4183

PROBLEM: 3, ['N', '2811', 'd', 'X', '8807', '8361', '4677', '7585', '647', 'n', '1317', 'b', '4073', '8153', 'v', 'r', 'Q', 'A', 'O', 'M', '3679', '8431', 'n', '5933', 'D', 'W', '875', 'y']

SOLUTION:
N, 2811, d, X, 8807, 8361, 4677, 7585, 647, n, 1317, b, 4073, 8153, v, r, Q, A, O, M, 3679, 8431, n, 5933, D