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: 2, ['687', '8957', '9003', '9701', 'K', '9929', '6287', 'r', 'd', '8885', '1275', '3815', 'i', 'W', 'K', '9301', '2777', '5839', 's', '2333', '1057', 'a']

SOLUTION: 687, 8957, 9003, 9701, K, 9929, 6287, r, d, 8885, 1275, 3815, i, W, K, 9301, 2777, 5839, s, 2333

PROBLEM: 5, ['h', '5371', 'Y', 'E', '4733', '9039', 'w', 'p', '1229', '4813', '2273', 'q', '1831']

SOLUTION: h, 5371, Y, E, 4733, 9039, w, p

PROBLEM: 3, ['u', 'F', '5645', 'q', '6703', '1443', 'j', '6547', '7561', 'i', 'f', '4637']

SOLUTION:
u, F, 5645, q, 6703, 1443, j, 6547, 7561