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, ['t', 'K', 'M', 'm', 'P', '6303', '6575', '8315', 'p', '6151', 'F', '9657', '2637', 'N']

SOLUTION: t, K, M, m, P, 6303, 6575, 8315, p, 6151, F

PROBLEM: 1, ['2935', 'H', '5139', 'n', 'X', '5999', 'C', '5147', 'J', '293', 'c', 'u', '9859', 'H', 'W', '2171', 'w', '3431', '1515']

SOLUTION: 2935, H, 5139, n, X, 5999, C, 5147, J, 293, c, u, 9859, H, W, 2171, w, 3431

PROBLEM: 1, ['451', '9177', '533', 'e', '9381', '8627', '7565', '1907', 't', 's', 'K', 'X', 'C', '5401', 'q', 'A']

SOLUTION:
451, 9177, 533, e, 9381, 8627, 7565, 1907, t, s, K, X, C, 5401, q