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, ['8109', '3725', '4809', 'n', '1761', 'u', '7147']
[EX A]: 8109, 3725, 4809, n

[EX Q]: 5, ['Y', 'r', '9549', 'A', 'W', '9491', '1261', '2453', '5669', 'd', '9411', '1809', '581', 'O', '1969']
[EX A]: Y, r, 9549, A, W, 9491, 1261, 2453, 5669, d

[EX Q]: 8, ['Y', '3837', 'j', '8533', '9049', '5063', '9241', 'O', '8765', '2785', '3427', 'u', '7225', 'b', 'y', 'x', 'A']
[EX A]:
Y, 3837, j, 8533, 9049, 5063, 9241, O, 8765