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.
--------
Question: 3, ['O', '4045', 'd', 'r', 'h', '3903', 'I', '5309', '7833', 'c', '7265', 'X']

Answer: O, 4045, d, r, h, 3903, I, 5309, 7833


Question: 5, ['555', 'x', '7843', 'C', '5791', 'i', '841', '5189', '3321', 'B', '9865', 'r']

Answer: 555, x, 7843, C, 5791, i, 841


Question: 5, ['B', 'Z', '4781', '5801', 'D', '1853', 'G', '2223', '13', '5405']

Answer:
B, Z, 4781, 5801, D