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: 1, ['6109', 'd']

SOLUTION: 6109

PROBLEM: 12, ['6951', 'k', 'c', 'i', 'r', 'V', '8969', '3191', 'R', '6055', '4941', 'M', 'B', 'O', 'V', 'g', '6385', 'T', 'e', '8719', '7043', '2277', 'd', '6167', 'r']

SOLUTION:
6951, k, c, i, r, V, 8969, 3191, R, 6055, 4941, M, B