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: 9, 18, ['2417', 'G', 't', '3589', '5831', '5729', 'L', '4503', 'n', '2715', '9049', 'm', '9451', '8807', 'k', '1951', '3803', 'T', '3875', '6887', 'd', 'f', '5341']

n, 2715, 9049, m, 9451, 8807, k, 1951, 3803, T