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: 10, ['d', 'c', 'Z', 'b', '4185', 'Y', '3381', 'd', '4167', 'J', '539', 'h', 'Q', '165', '8025', 'M', '6337', 'z', 'k', 'A', 'E', '9729', '7747', '7387', 'S', 'U']

SOLUTION: d, c, Z, b, 4185, Y, 3381, d, 4167, J, 539, h, Q, 165, 8025, M

PROBLEM: 3, ['323', 'C', 'R', '5703', 'E', '1017', '4417', 'W', '2391', '7173', '1207', '7323', 'v', 'Q', '9621', 'N', '2419', 'o', 'v', 'B']

SOLUTION: 323, C, R, 5703, E, 1017, 4417, W, 2391, 7173, 1207, 7323, v, Q, 9621, N, 2419

PROBLEM: 2, ['T', '1751', '2559', '4365', 'S', 'n', 's', '2577', '3221', 'B', 'A', 'M', '6009', '8961', '5521', 't', '6735', '307', '705', 'f', '7023', '6093', '245', '6187', 'z', '4327', '3525', 'q', 'E']

SOLUTION:
T, 1751, 2559, 4365, S, n, s, 2577, 3221, B, A, M, 6009, 8961, 5521, t, 6735, 307, 705, f, 7023, 6093, 245, 6187, z, 4327, 3525