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: 2, ['o', '6313', 'b', '8807']

SOLUTION: o, 6313

PROBLEM: 7, ['839', '5995', '359', '497', '7397', 'g', 'T', 'o', 'd', '8979', 'h', 'e', '497', 'Y', '4977']

SOLUTION: 839, 5995, 359, 497, 7397, g, T, o

PROBLEM: 2, ['D', '1849', 'X', 'E']

SOLUTION:
D, 1849