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, ['3999', '8117', '6037', 'Q']

SOLUTION: 3999, 8117

PROBLEM: 1, ['A', '7761']

SOLUTION: A

PROBLEM: 6, ['n', '5223', 'S', '3439', '3703', '411', 'i', 'L', 'h', 'c', 'v', '3811', 'k', '6963', 'x', 'E', '3825', '6865', '7365', '3457', 'A', '1731', '9237', '8609', 'e']

SOLUTION:
n, 5223, S, 3439, 3703, 411, i, L, h, c, v, 3811, k, 6963, x, E, 3825, 6865, 7365