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.

[Q]: 4, ['4773', 'K', '4689', 'L', 'b', 'Y', '911', '5037', 'i', 'x', 'i', '1881', '9697', '4575', 'e', '7425', 'k', 'X', '1287', '5939', '4907', '9289', 'm', '269', 'w', '641', '8981']
[A]: 4773, K, 4689, L, b, Y, 911, 5037, i, x, i, 1881, 9697, 4575, e, 7425, k, X, 1287, 5939, 4907, 9289, m


[Q]: 6, ['8369', 'V', '267', '7265', 'V', 'G', 'P', '8681', '3513', '1899', '4619', 'Z', 'Y', '2757', 'x', '3991', 'p', 'c', '7139']
[A]: 8369, V, 267, 7265, V, G, P, 8681, 3513, 1899, 4619, Z, Y


[Q]: 2, ['p', 'B', '6527', 'w', '2531', 'z']
[A]:
p, B, 6527, w