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: 3, ['Y', '3499', '2787', 'C', 'U', '4895']

SOLUTION: Y, 3499, 2787

PROBLEM: 2, ['8817', '3439', '8059', '703', '5885', '3175', 'x', '7971', 'f', '3897', 'e', 'B', '6923', 'Y', 'z', 'D', 'Z']

SOLUTION: 8817, 3439, 8059, 703, 5885, 3175, x, 7971, f, 3897, e, B, 6923, Y, z

PROBLEM: 3, ['4399', '9137', '613', '3023', 'n', '5903', '7547', '2497', 'C', 'U', 'R', 'W', '9233', 'j', 'R', 'A', '3483', '5267', 'h', 'N', '2167', '7303', 'E', '8581', 'A']

SOLUTION:
4399, 9137, 613, 3023, n, 5903, 7547, 2497, C, U, R, W, 9233, j, R, A, 3483, 5267, h, N, 2167, 7303