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.

[EX Q]: 3, ['x', 'y', 'M', '9519', '6553', '7497', 'j', '9587', 'g', '9393', 'C', 'T']
[EX A]: x, y, M, 9519, 6553, 7497, j, 9587, g

[EX Q]: 6, ['2331', '8945', 'l', 'k', '3451', '9015', 'B', 'H', '2081', '5083', '125', '9517', 'e', '2255', '5253']
[EX A]: 2331, 8945, l, k, 3451, 9015, B, H, 2081

[EX Q]: 1, ['5641', '6687', '6417', 'd', 'X', 'G', '6899', '7999']
[EX A]:
5641, 6687, 6417, d, X, G, 6899