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: 3, 4, ['4567', 'W', 'J', 'g', 'C', '5937', 'e', 'r', '8825', '2837', '91', 'n', 'R', '7249', '3165', '7157', 'M', 'k', '4635', 'H', 'p', '1867', '9945']

J, g