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, ['y', '7739', 'B', 'u', '3015', 'R', 'Y', '5359', 'x', '2305', 'G', '7425', '2775', 'J', '3019', '2907', 'r', '7089', 'i', '975', '9735', '5701']

SOLUTION: y, 7739, B, u, 3015, R, Y, 5359, x, 2305, G, 7425, 2775

PROBLEM: 1, ['D', '7203', 'r', '8371', '6637', '4107', 'L', '317', 'T', 'q', 'W', '8475', 'x', '3297', 'H', 'G', '3511', '5221', 'V', 'k', 'm', '4659', 'r', 'q', '3465', '9245', 'p', 'k', '6289', 'f']

SOLUTION: D, 7203, r, 8371, 6637, 4107, L, 317, T, q, W, 8475, x, 3297, H, G, 3511, 5221, V, k, m, 4659, r, q, 3465, 9245, p, k, 6289

PROBLEM: 5, ['6133', 'R', 'r', 'r', 'v', 'h', '2141', '5617', '1289', '2413', '4741', 'n', '3229', '3425', 'h', '697', 'y']

SOLUTION:
6133, R, r, r, v, h, 2141, 5617, 1289, 2413, 4741, n