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: 16, 18, ['r', '2785', 'u', '5637', '4641', '507', '5197', 'm', 'I', 'Q', 'e', '9991', 'P', 'o', '3661', '6391', '6449', 'I', '99', 'D', 'o', '129', 'P', 'f', 'f', '5363', 'z', 'S', 'Q', '7837']

6391, 6449, I