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: 4, ['2293', '8425', '7307', '4473', 's', 'n', '8967', 'G', 'Y', 'z', 't', '8263', 'a', '5415', '791', '5041', 'y', '549', '4689', 'a', '8333', 'X', '9043', '8931', '3099', 'O']

SOLUTION: 2293, 8425, 7307, 4473, s, n, 8967, G, Y, z, t, 8263, a, 5415, 791, 5041, y, 549, 4689, a, 8333, X

PROBLEM: 7, ['1271', 'y', '9543', '5773', '567', '8609', 'Q', '8599', '1801', '4245', 'U', 'z', 'a', '3753', '3283', '9711', 'N']

SOLUTION: 1271, y, 9543, 5773, 567, 8609, Q, 8599, 1801, 4245

PROBLEM: 2, ['r', 'w', '9665', 'u', 'V', '4191', '817', 'V', '1667', 'r', '6009', 'c', '2517', 't', '8769', 'R', '1303', '8825', '7185', 'N', 'I', 'V', '6019', '7893']

SOLUTION:
r, w, 9665, u, V, 4191, 817, V, 1667, r, 6009, c, 2517, t, 8769, R, 1303, 8825, 7185, N, I, V