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]: 15, ['3431', '2771', 'D', 'u', '9145', '239', 'R', '7953', 'G', '5785', 'd', 'h', 'h', '6517', 'h', '5731', 's', 'N', 'v', 'T', 'E', 'l', '7657', 'U', 'h', '9741', '3253', '1395', 'I', '3445']
[A]: 3431, 2771, D, u, 9145, 239, R, 7953, G, 5785, d, h, h, 6517, h


[Q]: 2, ['D', '4719', 'E', 'B', 'Z', 'W', 'e', '7083', '167', 'p', 'z', '3405', 'I', 'g', '961', '2493', 'g', '7295', 'p', '6419', 'b', '2089']
[A]: D, 4719, E, B, Z, W, e, 7083, 167, p, z, 3405, I, g, 961, 2493, g, 7295, p, 6419


[Q]: 5, ['8689', '4673', '7177', '4937', '1161', '1419', 'M', 'A', '4215', 'b', '9511', '2709', 'G', '7245', '8123', '6027', '1531', 'k']
[A]:
8689, 4673, 7177, 4937, 1161, 1419, M, A, 4215, b, 9511, 2709, G