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, ['843', 'v', 'B', '8973', '3865', 'R', '3077', 'H', '1685']

SOLUTION: 843, v, B, 8973, 3865, R, 3077

PROBLEM: 1, ['4605', 'E', '7663', 'R', '2159', '6297', 'Z', 'j', '7075', '4355', 'b', '9585', '2707', 'n', '2899', 'v', '8237', '773', 'L', '4905', '9885', 'V', '8165', '6037', 'R', 'A']

SOLUTION: 4605, E, 7663, R, 2159, 6297, Z, j, 7075, 4355, b, 9585, 2707, n, 2899, v, 8237, 773, L, 4905, 9885, V, 8165, 6037, R

PROBLEM: 13, ['2865', 'U', 'q', '5079', '3313', '3681', 'V', '277', '313', 'L', '8825', '9437', '5509', '3539', '9941', '9385', '3289', 'j', '4971', 'g', 'k', '71', '4183', '1407', '8875', 'D']

SOLUTION:
2865, U, q, 5079, 3313, 3681, V, 277, 313, L, 8825, 9437, 5509