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: 3, ['3901', 'l', 'h', '9541', '9307', 'm', 't', 'W']

SOLUTION: 3901, l, h, 9541, 9307

PROBLEM: 3, ['7835', '8157', 'q', '1331', '9025', '8057', '1681', '4049', '5333', 'H', '8769', 'h', 'y']

SOLUTION: 7835, 8157, q, 1331, 9025, 8057, 1681, 4049, 5333, H

PROBLEM: 1, ['l', 'p', 'T', 'Q', 'J', '861', 'l', 'n', '7861', 'D', 'i', 'v', 'v', 'O', '6207', '1895', '7109', '2509', 't', '393', 'T', 'G', 'l', '6811']

SOLUTION:
l, p, T, Q, J, 861, l, n, 7861, D, i, v, v, O, 6207, 1895, 7109, 2509, t, 393, T, G, l