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: 5, ['O', 'g', 'W', '3913', '1413', '7113', '3145', 'Q', '111', '4643', 'm']

SOLUTION: O, g, W, 3913, 1413, 7113

PROBLEM: 3, ['2181', '4599', 'D', 'z', '9097', '9267', 'q', '71', 'w', 'D', 'K', 'V', '2653', '2427', '1471', '733', '6887', '2789', 'G', 'S', '8401', '8327', '307', 'r', 'n', 'u']

SOLUTION: 2181, 4599, D, z, 9097, 9267, q, 71, w, D, K, V, 2653, 2427, 1471, 733, 6887, 2789, G, S, 8401, 8327, 307

PROBLEM: 10, ['O', '3647', '6385', 'o', 'H', '2279', 'i', 'u', '6979', '7995', 'd', 'q', 'p', 'O', 'p', 'W', 'D', 'K', 'y', 'N', 'F', 'O', '7965', '6475', 'E']

SOLUTION:
O, 3647, 6385, o, H, 2279, i, u, 6979, 7995, d, q, p, O, p