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: 3, ['3287', '3313', '1501', '5179', 'S', 'n', '8371', 'Z', 'K', 'T', 'v', '7227', '8315', '6731', 'e', 'h', 'g', '4397']

SOLUTION: 3287, 3313, 1501, 5179, S, n, 8371, Z, K, T, v, 7227, 8315, 6731, e

PROBLEM: 2, ['S', 'j', '3363', 'F', '4755', 'M', 'j', '3675', 'v', '8531', '8159', '3165', 'e', '5189', 'O', 'V', '5953', 'N', '3761', '5969', 'k', 'f', '9601', '1725', 'r', '7341', 'S', '2223', 'k']

SOLUTION: S, j, 3363, F, 4755, M, j, 3675, v, 8531, 8159, 3165, e, 5189, O, V, 5953, N, 3761, 5969, k, f, 9601, 1725, r, 7341, S

PROBLEM: 6, ['4331', 'L', '3231', 'm', '3125', '5057', 'H', 'x', 'F', 'A', '8891', '8113', 'U', '6307', 'd', 'u', '8133', '2085', 'A', 'S']

SOLUTION:
4331, L, 3231, m, 3125, 5057, H, x, F, A, 8891, 8113, U, 6307