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: 7, 22, ['f', 'Y', 'z', '6635', '8869', 'd', 'B', '9123', '9071', '8071', '3001', '9599', '2005', 'j', 'r', '6275', 'I', 'g', 'P', '8471', '4387', 'C', '2499', '5077', '1977', 'T', '7417', '1133']

B, 9123, 9071, 8071, 3001, 9599, 2005, j, r, 6275, I, g, P, 8471, 4387, C