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, ['2161', 'V', 'r', 'I', '9813', 'P', 'E', 'J', 'Z', '8861', '9883', '131', '2089', 'p', '8863', '1483', '4753', '7895']

SOLUTION: 2161, V, r, I, 9813, P, E, J, Z, 8861, 9883, 131, 2089, p, 8863, 1483, 4753

PROBLEM: 2, ['y', '9251', '9425', 'B']

SOLUTION: y, 9251

PROBLEM: 2, ['8587', 'j', '5197', '5485', 'O', 'o', '201', '2351']

SOLUTION:
8587, j, 5197, 5485, O, o