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, ['2877', '4495', 'H', 'g', '1741', '6623', 't', '5345', 'l', 'J', '3691', 'A', '467', '6027', '789', '7345', 'l', 'r', '1637', 'w', 'x', '7823', 'U']

Answer: 2877, 4495, H, g, 1741, 6623, t, 5345, l, J, 3691, A, 467, 6027, 789, 7345, l, r, 1637


Question: 3, ['9317', 'r', 'h', '8465', '8803', '9133', 'L', 'R', 'A', 'i', 'u', '8513', '9071', '3583']

Answer: 9317, r, h, 8465, 8803, 9133, L, R, A, i, u


Question: 6, ['8439', '3637', 'Z', 'm', 'Y', '2099', '5079', '3549', '7295', 'U', '4871', '8085', 'Z', 'P', 'O', '3953', '2531', '7333', '7209', '8667', '139', '4155']

Answer:
8439, 3637, Z, m, Y, 2099, 5079, 3549, 7295, U, 4871, 8085, Z, P, O, 3953