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, ['d', 'X', '6369', '3073', 'Q', '1313', 'l', 'u', '333', '8689', '6951', '4511', '4663', '923', '7035', 'W', '2917', 'U', 'O', '4451', '159', 'C', '7407', '9719', 't', 'D', '4077', '6425', 'Q']

159, C, 7407, 9719