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, ['j', 'Q', '6289', 'K', '8341', '2631', '2421', '7539', 'h', '4761', 'K', '7323', 'i', 'X', 'y', '6981', 'P', '7335', 'h', 'H']

SOLUTION: j, Q, 6289, K, 8341, 2631, 2421, 7539, h, 4761, K, 7323, i, X, y

PROBLEM: 1, ['413', '8413', 'C', 't', '8899', 'U', '6869', '991', 'C', '7051', 'A', '1827', '3915', 'k', '6255', 'j', '1101', 'L', 'z']

SOLUTION: 413, 8413, C, t, 8899, U, 6869, 991, C, 7051, A, 1827, 3915, k, 6255, j, 1101, L

PROBLEM: 2, ['3927', 'Z', '8453', '9071', '4727', 'l', '5135', '7215', '3515', '261', 'G', 'L', '1629', '2985', 'V', 'k', '781', '1595', '8515']

SOLUTION:
3927, Z, 8453, 9071, 4727, l, 5135, 7215, 3515, 261, G, L, 1629, 2985, V, k, 781