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: 5, 27, ['n', 'C', 'w', 'i', 'p', 'W', '5785', '2765', '8719', 'I', '11', '1689', '2671', '2819', '8535', 's', 'r', 'f', 'K', 'q', '3009', 'h', '3317', '871', '4677', '2269', '7275']

pW578527658719I111689267128198535srfKq3009h3317871467722697275