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 concatenate all elements of A from the ith element to the jth element, and print the resultant string. 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.
Q: 8, 18, ['6431', 'a', '9207', 'o', 'N', '7111', 'd', 'J', '9335', '2285', '9655', '2125', 'f', 'p', 'V', '1897', 'z', '281', 'r', '3269', '6997', 'g', 'X', '8145', 'B', '5645', '9381', '7917', '3347']
A: 
J9335228596552125fpV1897z281