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', 'r', '9549', 'A', 'W', '9491', '1261', '2453', '5669', 'd', '9411', '1809', '581', 'O', '1969']

SOLUTION: Y, r, 9549, A, W, 9491, 1261, 2453, 5669, d

PROBLEM: 3, ['t', 'x', 't', 'O', 'L', '2937', 'A', '4883', '745', 'H', '1661', 'u', '9837', '7675', '7471', '3781', 'n', '8275']

SOLUTION: t, x, t, O, L, 2937, A, 4883, 745, H, 1661, u, 9837, 7675, 7471

PROBLEM: 1, ['2099', 'I', 'P', 'I', '865', 'x', '3035', 'j', 'z', '8617', '7451', '8977', '9795', 'l', 'l', 'E', 'F']

SOLUTION:
2099, I, P, I, 865, x, 3035, j, z, 8617, 7451, 8977, 9795, l, l, E