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: 1, ['s', '7121']

SOLUTION: s

PROBLEM: 1, ['s', 'q', 'a', '6215']

SOLUTION: s, q, a

PROBLEM: 3, ['2547', 'j', '4287', 'l', 'h', '3397']

SOLUTION:
2547, j, 4287