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: 6, ['985', '7793', '2875', '4197', 'U', 'z', 'e', 'f', '591', '3747', '8661', 'I', 'u', '9343', '6973', 'K', '6295', '7271', 'g', '3797', '8631', '5711', '503']

SOLUTION: 985, 7793, 2875, 4197, U, z, e, f, 591, 3747, 8661, I, u, 9343, 6973, K, 6295

PROBLEM: 4, ['8667', 'w', 'M', '3117', 'r', '7759', 'B', 't', 'r', '7625', 'H', 'Y', '2613', '3595']

SOLUTION: 8667, w, M, 3117, r, 7759, B, t, r, 7625

PROBLEM: 9, ['365', '4901', 'i', '3047', 'O', '5529', 'T', 'd', 'd', 'f', '5281', 'A', 'A', 'b', 'r', 'V', '6191', '103', '7705', '3155', '7053', 'z', 'a', '6359', '3267', '4997']

SOLUTION:
365, 4901, i, 3047, O, 5529, T, d, d, f, 5281, A, A, b, r, V, 6191