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: 5, ['W', '9233', '4001', 'R', '2829', 't', 'T', '3353', '1013', 'w']

SOLUTION: W, 9233, 4001, R, 2829

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

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

PROBLEM: 1, ['8621', 'v', 'I', '8415', 'u', '8181', '7831', '9691', '9801', 'c', 'G', '7129', '6237', 'P', 'F', 'v', 'R', '7627', '4759', '2793', 'C', 'g', '8221', '9017', '711', '3223']

SOLUTION:
8621, v, I, 8415, u, 8181, 7831, 9691, 9801, c, G, 7129, 6237, P, F, v, R, 7627, 4759, 2793, C, g, 8221, 9017, 711