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, ['1753', '4741', '3853', 'U', 'J', 'S', '3935', 'G', '7475', 's', 'j', 'z', '1513', 'K', 'w', '9075', 'd', '9707', '8793', 'u', '6173', '933', '9195', '7203', 'k', 'K']

SOLUTION: 1753, 4741, 3853, U, J, S, 3935, G, 7475, s, j, z, 1513, K, w, 9075, d, 9707, 8793, u, 6173, 933, 9195, 7203, k

PROBLEM: 2, ['4745', '1001', 'z', 'c', '143', 'd', '3291', 'r', '5543', '8577', '251']

SOLUTION: 4745, 1001, z, c, 143, d, 3291, r, 5543

PROBLEM: 5, ['P', 'D', '755', '5101', '735', '2819', '9677', '2149', '7237', '6541', 'm', '5897', '9827', '9059', '9415', '6823', '4309', 'A', '9035', 'Y', '4417', '8343', '5265', 'y', 'd', '5243']

SOLUTION:
P, D, 755, 5101, 735, 2819, 9677, 2149, 7237, 6541, m, 5897, 9827, 9059, 9415, 6823, 4309, A, 9035, Y, 4417