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: 5, ['1667', 'U', '1659', 'E', 'J', '7209', 'B', '9839', 'z', '8841', '5105', 'N', '1487', 'q', '3137', 'b', 'D', '1433', '2365', 'Q', '75', 't', '9887', 'y']

SOLUTION: 1667, U, 1659, E, J, 7209, B, 9839, z, 8841, 5105, N, 1487, q, 3137, b, D, 1433, 2365

PROBLEM: 1, ['9683', 'T', 'l', '3319', 'd', '3273']

SOLUTION: 9683, T, l, 3319, d

PROBLEM: 1, ['3895', '8895', 'O', '8721', 'E', '629', '9697', '7673', 'y', 'x', 'W', 'Q', '7823', '3037', '2699', 'X', 'E', '1591', 'T', '1389', 'D', 'L', 'x', '5121', 's', '6817', '4425', '1409', 'E', '2835']

SOLUTION:
3895, 8895, O, 8721, E, 629, 9697, 7673, y, x, W, Q, 7823, 3037, 2699, X, E, 1591, T, 1389, D, L, x, 5121, s, 6817, 4425, 1409, E