Definition: In this task, you are given inputs i,j, and A, where i and j are integers and A is a list. You need to list all elements of A from the ith element to the jth element. i and j will be non-negative, and will always have a value less than the length of A. i will always be less than j.
Input: 3, 9, ['3697', '4679', 'P', 'R', 'e', '5235', '7799', '1863', 'g', '1861', '1579', '1479', '971', '3651', 'w', '4965', 'I', '9031', '3521', 'B', '1267']

P, R, e, 5235, 7799, 1863, g