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: 4, 24, ['M', 'P', '2055', '3219', '809', 'M', 'N', '117', '4007', '9777', 'b', 'd', 'o', '381', 'k', '3257', 'm', 'i', 'w', 'H', 'v', '6955', 'k', '8747', '5691', '8091', '209', 'U']

3219, 809, M, N, 117, 4007, 9777, b, d, o, 381, k, 3257, m, i, w, H, v, 6955, k, 8747