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, ['U', 'l', 'M', '1741']

SOLUTION: U, l

PROBLEM: 1, ['7243', 'L', '5821', '1727', '4231', '5257', '1493', '6457', '6165', 'J', '7105']

SOLUTION: 7243, L, 5821, 1727, 4231, 5257, 1493, 6457, 6165, J

PROBLEM: 7, ['P', '6295', 'j', 'M', '3189', '6695', '797', 'O', '5175', '3181', 'c', 'b', 'H', 't', '4349', '1133', 'j', '4841', 'e', '8881', 'm', 'R', '5799', '6405', 'P']

SOLUTION:
P, 6295, j, M, 3189, 6695, 797, O, 5175, 3181, c, b, H, t, 4349, 1133, j, 4841