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: 1, ['8423', '8687']

SOLUTION: 8423

PROBLEM: 9, ['M', '5', 'j', 'D', '8995', '9639', 'C', '431', '9105', '525', 'Q', 'O', '3657', '6137', 'u', 'c', '3099', '6233']

SOLUTION: M, 5, j, D, 8995, 9639, C, 431, 9105

PROBLEM: 8, ['6197', 'P', '6471', 'S', 'M', '113', 'g', '5681', '1319', '995', 'r', 'W', 'D', 'o', '7181', '3497', '6403', 'a', '5379', '2129', '4601', 'w', 'X', '6125', 'h', '6621']

SOLUTION:
6197, P, 6471, S, M, 113, g, 5681, 1319, 995, r, W, D, o, 7181, 3497, 6403, a