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, ['y', 'L', '3769', '9435', 'o', '801', 'Y', 'Q', '9365', '1947', '6731']

SOLUTION: y, L, 3769, 9435, o, 801

PROBLEM: 8, ['3149', '7327', '8513', '4681', 'O', '5083', 'A', 'z', '5367', '3713', '8887', 'U', '23', '8091', 'A', 'k', 'F', 's', 'Y', '2217', '6479', 'F', '2239', '3305', 'N', '8459', '667', 'D', 'j']

SOLUTION: 3149, 7327, 8513, 4681, O, 5083, A, z, 5367, 3713, 8887, U, 23, 8091, A, k, F, s, Y, 2217, 6479

PROBLEM: 10, ['6247', '9613', '3361', '6013', '2321', '5939', 'X', '1039', '2467', 't', '287', '8977', '1495', 'y', '8037', 'v', '1499', '8035', 'o', '9151']

SOLUTION:
6247, 9613, 3361, 6013, 2321, 5939, X, 1039, 2467, t