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, 24, ['A', 'P', '1499', 'R', 'J', 'V', 'W', 'L', '6889', 'J', '3653', 'd', '4215', 'q', 'Z', '5083', 'q', '8927', '6105', 'V', 'K', '3657', '7819', '8111', 'Q']

J, V, W, L, 6889, J, 3653, d, 4215, q, Z, 5083, q, 8927, 6105, V, K, 3657, 7819, 8111