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: 7, ['S', 'N', 'd', 'b', '2207', 's', '4723', 'q', '5379', 'l', 'd', '9345', 'P', 'N', '7101', 'F', 'b', 'c', 'p', 'V', '2987']

SOLUTION: S, N, d, b, 2207, s, 4723, q, 5379, l, d, 9345, P, N

PROBLEM: 1, ['c', '8843', 'R', '7857', '8439', 'c', 'a', 'S', '75', 'S', '6095', 'S', '4857', 'U', 's', 'T', 'b', '8079', '9635']

SOLUTION: c, 8843, R, 7857, 8439, c, a, S, 75, S, 6095, S, 4857, U, s, T, b, 8079

PROBLEM: 6, ['5279', 'R', '445', '7181', 'h', 'C', 'f', 'j', '8741', '1169', '4949', 'A', '4795', 'E', 'Y', 'I', '4251', 'T', '2693', 'g', '5587', 'D', 'F']

SOLUTION:
5279, R, 445, 7181, h, C, f, j, 8741, 1169, 4949, A, 4795, E, Y, I, 4251