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, ['9861', 'h', '87', 'z', '805', 'M', '513', '9101', '1595']

SOLUTION: 9861, h, 87, z, 805, M

PROBLEM: 5, ['5945', '3475', '7789', '5501', 'V', 'Y', '4109', '1799', '585', '2855', 's', '3577', 'E', '3845', 'B', 'H', 'L', 'D']

SOLUTION: 5945, 3475, 7789, 5501, V, Y, 4109, 1799, 585, 2855, s, 3577, E

PROBLEM: 2, ['q', '3995', 'D', 'U', '7077', 'f', 'h', '4375', 'u', '3979', 'w', 'y', '2827', '5981', '6025', 'd', '4485', '9333', '55', '7243', '5913', 'U', '3161', 'U']

SOLUTION:
q, 3995, D, U, 7077, f, h, 4375, u, 3979, w, y, 2827, 5981, 6025, d, 4485, 9333, 55, 7243, 5913, U