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, ['7835', '1279', 's', '1149', 'x', 'L', '4499', '517', 'Y', 'E', 'h', '2687', 'f']

SOLUTION: 7835, 1279, s, 1149, x, L, 4499, 517, Y, E, h

PROBLEM: 7, ['839', '5995', '359', '497', '7397', 'g', 'T', 'o', 'd', '8979', 'h', 'e', '497', 'Y', '4977']

SOLUTION: 839, 5995, 359, 497, 7397, g, T, o

PROBLEM: 12, ['P', 'a', 'M', '5499', 'I', '899', '9807', '6101', 'C', '3247', 'w', 'd', 'X', '9685', 'c', '593', 'Y', 'S', 'F', 'I', 'X', 'E', 'u', '3151', 'Q', '4049', '4593', '8321', '2873']

SOLUTION:
P, a, M, 5499, I, 899, 9807, 6101, C, 3247, w, d, X, 9685, c, 593, Y