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, ['3727', 'R', 'h', '1969', 'v', '5353', 'A', 't', '2237', 'j', 't', 'T']

SOLUTION: 3727, R, h, 1969, v, 5353, A, t, 2237, j

PROBLEM: 7, ['7721', 'W', 'o', 'R', '2933', 'N', '9829', '707', 'A', 'a', '8035', 'i', 'B', 'j', '319', 'v', '5879']

SOLUTION: 7721, W, o, R, 2933, N, 9829, 707, A, a

PROBLEM: 1, ['1289', '8021', 'Y', 'd']

SOLUTION:
1289, 8021, Y