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: 6, ['g', '2043', '6243', '8743', '2557', '8847', '663', 'D', 'M', '6503', 'u', 'W', 's', '3707', '4763', '6937']

SOLUTION: g, 2043, 6243, 8743, 2557, 8847, 663, D, M, 6503

PROBLEM: 3, ['w', '273', '3987', 'J', 'm', 'v', '321', '8839', 'e', 'E', '5029', '1825', 't', 'a', '1257']

SOLUTION: w, 273, 3987, J, m, v, 321, 8839, e, E, 5029, 1825

PROBLEM: 8, ['W', '1647', 'M', 'M', '35', 'X', 'q', '7937', '8615', 'R', 'y', 'i', 'f', '4051', 'n', 'h']

SOLUTION:
W, 1647, M, M, 35, X, q, 7937