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: 5, 16, ['o', '7579', 'Y', 'm', 'K', '1131', 'f', 'r', '3345', '7965', 'K', 'R', '727', 'i', 'q', 'c', 'R', 'y', '8421', '4069', 'u', '131', 'j', '6793', '429', '8483']

K, 1131, f, r, 3345, 7965, K, R, 727, i, q, c