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: 4, ['8667', 'w', 'M', '3117', 'r', '7759', 'B', 't', 'r', '7625', 'H', 'Y', '2613', '3595']

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


Question: 3, ['Y', '3499', '2787', 'C', 'U', '4895']

Answer: Y, 3499, 2787


Question: 1, ['1243', 'J', '1877']

Answer:
1243, J