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.
--------
Question: 9, ['U', 'D', 't', 'q', 'h', '2909', '9001', '79', 'V', 'A', 'H', '5597', 'p', '4475', '9295', '6835', 'o', '8759', '8845', 'i', '2277', '445', 'i', '199', '8793', '9463', 'l', 'S']

Answer: U, D, t, q, h, 2909, 9001, 79, V, A, H, 5597, p, 4475, 9295, 6835, o, 8759, 8845


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

Answer: Y, r, 9549, A, W, 9491, 1261, 2453, 5669, d


Question: 2, ['6665', '3485', 'A', 'f', '1015', '1183', '2921', '9221', 'K', 'U', 'R', '1821', 'W', 'v', 'M', '1017', 'y', 'd', '8579', 'q', 'g', 'R', 'E', 'v', 'Z', 'A', 'i', '9185', '8571']

Answer:
6665, 3485, A, f, 1015, 1183, 2921, 9221, K, U, R, 1821, W, v, M, 1017, y, d, 8579, q, g, R, E, v, Z, A, i