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]: 12, ['125', 'm', 'Z', 'U', '5187', '1847', '3597', 'x', 'l', '5521', '6473', '3801', 'E', '3577', '6383', '7463', '7343', '6981', 'E', 'p', 'H', '7193', 'K', '4875']
[A]: 125, m, Z, U, 5187, 1847, 3597, x, l, 5521, 6473, 3801


[Q]: 6, ['g', '2043', '6243', '8743', '2557', '8847', '663', 'D', 'M', '6503', 'u', 'W', 's', '3707', '4763', '6937']
[A]: g, 2043, 6243, 8743, 2557, 8847, 663, D, M, 6503


[Q]: 6, ['7141', '6587', 'U', '1639', '8469', 'X', 'M', '8675', 'k', '4531', 'o', 'i', '3681', 'u', '8957']
[A]:
7141, 6587, U, 1639, 8469, X, M, 8675, k