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, ['k', 'U', 'V', 't', '7875', 'E', 'i', '6211', '3549', 'Y', 'U', '7547']

SOLUTION: k, U, V, t, 7875, E, i, 6211, 3549

PROBLEM: 2, ['c', 't', '8783', 'E', '5327', '7383', '6607', 'R', '5779', 'B', 'k']

SOLUTION: c, t, 8783, E, 5327, 7383, 6607, R, 5779

PROBLEM: 4, ['605', 'F', 'N', 'W', '9053', '9473', 'K', '7987', '5217', '767', '2131', '1239', 'r', 'm', '7745', 'J', '7777', '59', 'C', '6817', 'P', '3993', 'z', '6581']

SOLUTION:
605, F, N, W, 9053, 9473, K, 7987, 5217, 767, 2131, 1239, r, m, 7745, J, 7777, 59, C, 6817