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 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.
Input: 1, 9, ['g', 'T', 'L', '5037', '7817', 'r', 'e', '7607', 'g', 'C', '3775', '1851', 'X', '1057', '1033', '3981']

gTL50377817re7607g