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: 11, 25, ['r', 'S', 'W', 'v', 'w', '9509', 'x', '6475', 'M', '7499', 'p', '9451', '7157', '5109', 'S', 'B', 'N', '2267', '2531', 'X', '5489', 'g', '931', '4349', 'Y', '1663', 'f', '4227']

p945171575109SBN22672531X5489g9314349Y