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, ['9331', '9975', 'G', 'p', '2841', 'U', 'n', 'f', 'w', 'l']

SOLUTION: 9331, 9975, G, p, 2841

PROBLEM: 2, ['247', '8163', '5723', '5791', '8303', '8405', '1515', '463', 'v', 'a', 's', 'j', 'j', 'V', '933', '3773', 'n']

SOLUTION: 247, 8163, 5723, 5791, 8303, 8405, 1515, 463, v, a, s, j, j, V, 933

PROBLEM: 12, ['6551', 'c', '7317', '355', 'x', 'v', 'd', '8167', 'C', 'x', '9619', '8011', 'w', 'S', 'k', 'D', 's', '8061', '83', '4739', 'i', 'c', '4639', 'Q', '8529', '8505', '9391', 'W', '6575']

SOLUTION:
6551, c, 7317, 355, x, v, d, 8167, C, x, 9619, 8011, w, S, k, D, s