TASK DEFINITION: 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.
PROBLEM: 5, ['s', 'i', '3295', 'n', '1193', 'c', 'Z', 'x', '6739', 's', '8097', '3231', 'D', 'Q', '5999', 'E']

SOLUTION: s, i, 3295, n, 1193, c, Z, x, 6739, s, 8097

PROBLEM: 1, ['8241', 'Q', 'm', '1117', 'M', '7055', 'R', 'E', 's', '1745', 'g', 'V', '9185', '8203', 'Y', 'N', 'F', '2225', '1859', '4107', '5543', '37', 'X', '3451', '2265', '9289', '5619', '5851', 'h', '8059']

SOLUTION: 8241, Q, m, 1117, M, 7055, R, E, s, 1745, g, V, 9185, 8203, Y, N, F, 2225, 1859, 4107, 5543, 37, X, 3451, 2265, 9289, 5619, 5851, h

PROBLEM: 8, ['4897', '1155', '4225', '6831', '8385', '355', 'M', '7443', '7325', 'N', '7781', 'e', '4175', '7787', 'J', '899', '3607', '3527', '6609', '5873', '3339', 'f', '5297', 'h', 'T']

SOLUTION:
4897, 1155, 4225, 6831, 8385, 355, M, 7443, 7325, N, 7781, e, 4175, 7787, J, 899, 3607