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: 8, ['5113', 'k', 'J', 'f', 'E', 'v', 'd', 'g', 'c', '6189', 'x', '2265', '4145', '1355', '5197', 'K', '1497', 'O', '7823']

SOLUTION: 5113, k, J, f, E, v, d, g, c, 6189, x

PROBLEM: 9, ['y', '7739', 'B', 'u', '3015', 'R', 'Y', '5359', 'x', '2305', 'G', '7425', '2775', 'J', '3019', '2907', 'r', '7089', 'i', '975', '9735', '5701']

SOLUTION: y, 7739, B, u, 3015, R, Y, 5359, x, 2305, G, 7425, 2775

PROBLEM: 1, ['2167', 'H', '2199', '2227', 'E', 'J', '3923', '4791', '1231']

SOLUTION:
2167, H, 2199, 2227, E, J, 3923, 4791