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, 18, ['2761', 'w', 'H', '2667', 'r', 't', 'd', '6773', 'U', 'T', 'P', 'E', '5585', '4721', '3637', 'j', 'v', 'p', 'J', 'D', '4615', '891', '4335', '6417', 't', '2577', 'R']

r, t, d, 6773, U, T, P, E, 5585, 4721, 3637, j, v, p