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: 5, ['5973', 'V', '2031', 'H', '6779', '8931', 'H', 'Z', '7833', 'P', '1749']

SOLUTION: 5973, V, 2031, H, 6779, 8931

PROBLEM: 13, ['p', 'L', '639', '5445', 'a', '5163', 'o', '5187', '3417', '6657', '7927', '9571', '8463', '2029', 'O', 'Q', 'x', 'G', 'i', 'h', '6847', '2741', '3585', 'B', '8121', 't', '3535']

SOLUTION: p, L, 639, 5445, a, 5163, o, 5187, 3417, 6657, 7927, 9571, 8463, 2029

PROBLEM: 6, ['o', 'w', '6087', '5025', 'S', 'v', '1571', '6271', '3675', 'q', '8117', '3243', '2317', '7947', 'x', '5011', 'B', '3441', '1765', 'd', '7489', '4821', '2761', 'p', '2679', '6103', 'v']

SOLUTION:
o, w, 6087, 5025, S, v, 1571, 6271, 3675, q, 8117, 3243, 2317, 7947, x, 5011, B, 3441, 1765, d, 7489