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: 2, ['5957', '3849', '607', '7883', 'y', 'y', '3165', '2541', 'z', 'g', '6123', 'q', '527', 'q', '8515', '1189', 't', 'e', 'j', '1389', '7571', '7485', '1017', '3799', '6519']

SOLUTION: 5957, 3849, 607, 7883, y, y, 3165, 2541, z, g, 6123, q, 527, q, 8515, 1189, t, e, j, 1389, 7571, 7485, 1017

PROBLEM: 3, ['u', 't', '6863', 'b', 'z', 'e', '7653', 'y', 'G']

SOLUTION: u, t, 6863, b, z, e

PROBLEM: 1, ['4851', 'O', 'a', 'Y', '2985', '9101', '9659']

SOLUTION:
4851, O, a, Y, 2985, 9101