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: 18, 22, ['5485', 'O', 'z', '2079', '1055', '729', 'L', '6481', '8869', '207', '4327', '1653', '7313', '4799', 'C', 'x', 'K', '8643', '1355', '9293', 'Q', 'Q', '8153', '9533', '8397', 'F', '1141', '3861', 'I']

864313559293QQ