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: 21, 24, ['5975', 'J', '4521', 'D', 'j', 'g', '4655', '4131', '6135', 'r', 'F', '9347', '2703', 'h', 'v', '7221', '1445', 'l', '3913', '4963', 'a', '8659', 'S', '4763', 'y', 'x', '1823', '8553', '9963', '3985']

a, 8659, S, 4763