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: 7, ['R', '9719', '7735', 'l', '2443', 'R', 'W', '1137', '8809', '5505', '953', '3001', '2857', '5161']

SOLUTION: R, 9719, 7735, l, 2443, R, W

PROBLEM: 3, ['Z', '1867', '3395', '4065', 'a', 'f', 'X', 'V', 'R', 'P', 'g', '2191', '933', '7691', '4161', 'P', 'r', '4905', '251', 'r', 'j', '5105', '1141']

SOLUTION: Z, 1867, 3395, 4065, a, f, X, V, R, P, g, 2191, 933, 7691, 4161, P, r, 4905, 251, r

PROBLEM: 12, ['7655', 'i', 'E', '8353', 'w', 'A', '7941', 's', '1867', '7649', 'l', '3987', 'm', '3391', '5351', '1291', '9363', '8785', 'H', '4077', 'K', 'K', 'r', 'q', 'c', '5675', 'R', 'y']

SOLUTION:
7655, i, E, 8353, w, A, 7941, s, 1867, 7649, l, 3987, m, 3391, 5351, 1291