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: 2, ['1323', 'p', '7981', 'x', '1135', '8007', 'k', '7763', 'v', '8851', '2491', '4337', 'B', 'e', 'J', '6689', '871', 'e', 'i', '6377', '7289', 'W', 'L', 't']

SOLUTION: 1323, p, 7981, x, 1135, 8007, k, 7763, v, 8851, 2491, 4337, B, e, J, 6689, 871, e, i, 6377, 7289, W

PROBLEM: 5, ['845', 'w', 'b', 'M', '8983', '1591', 'n', 'i', '9817', '1397', '5085', 'p', '503', 'o', '953', '3705', 'D']

SOLUTION: 845, w, b, M, 8983, 1591, n, i, 9817, 1397, 5085, p

PROBLEM: 1, ['t', '5653', '571', 'h', 'w', '417', '8353', '2413', '589', '7417', '5923', 'S', '3273', 'l', 'b', '6141', '2225', 'Q', '7799', '6173', 'x', 'N', 'F', '25', '7619', 'w', '4133', '7933']

SOLUTION:
t, 5653, 571, h, w, 417, 8353, 2413, 589, 7417, 5923, S, 3273, l, b, 6141, 2225, Q, 7799, 6173, x, N, F, 25, 7619, w, 4133