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, ['r', '7699', 's', 'c', '9657']

SOLUTION: r, 7699, s

PROBLEM: 4, ['781', 'x', 'v', 'G', 'k', '4317', '6855', 'D', 'S', 'z', '8161', '2497', '255', 'N', 'F', 'X', 'W', 'D', '2873', '8385', 'M', '8043', 'z']

SOLUTION: 781, x, v, G, k, 4317, 6855, D, S, z, 8161, 2497, 255, N, F, X, W, D, 2873

PROBLEM: 1, ['F', '9439', '6501', 'K', 'b', 'u', '3249', '6761', 'w', 'a', 'Y', '6985', '5523', '8787', '853']

SOLUTION:
F, 9439, 6501, K, b, u, 3249, 6761, w, a, Y, 6985, 5523, 8787