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: 18, 24, ['4983', 'l', 'z', 'O', '9991', '1615', 'u', '893', '6145', 'K', '4585', '499', '7579', 'z', 'I', '9881', 'Q', 'Z', '3577', '5659', '567', 'V', 'y', 'd', 'V']

Z, 3577, 5659, 567, V, y, d