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: 4, ['c', '8925', 'H', 'r', 'b', 'c', '4701', 'W', 'u', 'O', '2557', '1995', '6013', 'A']

SOLUTION: c, 8925, H, r, b, c, 4701, W, u, O

PROBLEM: 10, ['d', 'c', 'Z', 'b', '4185', 'Y', '3381', 'd', '4167', 'J', '539', 'h', 'Q', '165', '8025', 'M', '6337', 'z', 'k', 'A', 'E', '9729', '7747', '7387', 'S', 'U']

SOLUTION: d, c, Z, b, 4185, Y, 3381, d, 4167, J, 539, h, Q, 165, 8025, M

PROBLEM: 2, ['u', '7269', '5063', 'c', '2087', 'm', 'y', '5431', '7281', 'W', 'B', 'O', 'A', 'o', '9457']

SOLUTION:
u, 7269, 5063, c, 2087, m, y, 5431, 7281, W, B, O, A