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: 5, ['h', '1845', 't', '45', 'N', 'j', '4161', 'n', 'I', 'Y', '4091', 'W', 'y', 'C', 'i', 'H', 'd', 'E', '5529', 'e']

Answer: h, 1845, t, 45, N, j, 4161, n, I, Y, 4091, W, y, C, i


Question: 7, ['839', '5995', '359', '497', '7397', 'g', 'T', 'o', 'd', '8979', 'h', 'e', '497', 'Y', '4977']

Answer: 839, 5995, 359, 497, 7397, g, T, o


Question: 4, ['9819', '7193', 'g', 'v', '849', '5123', 'h', 'C', 'g', '3293', 'I', '2683', 'i', '363', '1685', '8853']

Answer:
9819, 7193, g, v, 849, 5123, h, C, g, 3293, I, 2683