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: 16, 23, ['2961', '1189', 'Z', '6329', 'T', '163', 'k', 'N', 'E', 'h', '4145', 'o', 'q', 'Y', '4815', 'M', 'b', 'z', 'o', '4343', '4149', '9561', 'y', 'd', 'B', '9947', '8369', '5843', '2829', 'S']

M, b, z, o, 4343, 4149, 9561, y