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: 1, ['p', '8843']

SOLUTION: p

PROBLEM: 4, ['1863', '8975', '8579', '4121', '605', 'm', '4059', 'C', 'j', '6327']

SOLUTION: 1863, 8975, 8579, 4121, 605, m

PROBLEM: 2, ['Q', '9591', '8625', 'C', 'z', '6587', '5895', 'c', 'X', 't', '343', 'O']

SOLUTION:
Q, 9591, 8625, C, z, 6587, 5895, c, X, t