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, 19, ['X', '8641', '7457', '4489', '3891', 'f', 'Z', 'X', 'i', '9459', '6501', '2183', '2343', '2889', '7311', '3051', '7091', 'R', 'i', 'K']

R, i