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: 15, 17, ['r', '3659', 'A', 'f', '2663', '5771', '4917', 'U', 'H', '3663', 'M', 'N', '5841', 'n', '2843', '8319', '5325', 'w', '5623', 'i', 'Y', '9647', '1293', 'K', 'G']

2843, 8319, 5325