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: 6, 9, ['Y', 'D', 'U', 'N', '287', '6257', '2645', 'M', '6039', 'h', '155', 'u', '5965', '2453', 'd', 'L', 's', 's', '2657', '5047', '825', 'F', '673', '9127', 'A', '3461', '8701', 'W', 'k']

6257, 2645, M, 6039