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]: 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, ['C', '9539', '7199', '9891']
[EX A]: C, 9539, 7199

[EX Q]: 7, ['J', 'O', 'o', 'm', 'L', '6421', 'h', 'i', '2081', '5461', 'C', 'X', '7219', 'j', 'O', '4963', '3915', '7591', 'J', '2697', '2113', 'q', '3649', 'r', '1953']
[EX A]:
J, O, o, m, L, 6421, h, i, 2081, 5461, C, X, 7219, j, O, 4963, 3915, 7591