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: 13, 18, ['4729', 'I', 'M', 'd', '8559', '241', 'k', 'N', '2693', 'f', 'f', '8549', '6783', 'Y', 'U', '2901', '7225', '167', '3433', '1599', '5701', '7867', '9229', '965', '8669', '4413', '9967', 'R']

6783, Y, U, 2901, 7225, 167