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: 5, 6, ['7707', 'w', '9267', 'z', 'X', '5373', '4763', '5139', 's', 'b', 'q', '6163', 'Q', 'd', 'p', 'r', 'b', '157', '6925', 'f', '1217']

X, 5373