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, ['Y', '3499', '2787', 'C', 'U', '4895']

Answer: Y, 3499, 2787


Question: 3, ['3901', 'l', 'h', '9541', '9307', 'm', 't', 'W']

Answer: 3901, l, h, 9541, 9307


Question: 8, ['X', '5205', '517', 'm', '9043', 'C', '9901', '7075', '5515', 'j', '3171', 'y', '17', '8277', 'R', 'J', 'Z', '7373', 'L', '3461', 'C', 'q', 'i']

Answer:
X, 5205, 517, m, 9043, C, 9901, 7075, 5515, j, 3171, y, 17, 8277, R