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: 2, ['4619', '6389', '7529', 'B', '8289', '6167']

SOLUTION: 4619, 6389, 7529, B

PROBLEM: 10, ['j', '9143', 'M', 'f', 'g', 'O', 'w', '1427', '8353', '4259', '2439', '6655', '5929', 'Z', 'W', '4831', '4079', 'x', 'h', 's', '8649', '8389', 'F', 'j', '7483', '4443', 'Q', 'N', '3271']

SOLUTION:
j, 9143, M, f, g, O, w, 1427, 8353, 4259, 2439, 6655, 5929, Z, W, 4831, 4079, x, h