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, 24, ['2749', '459', '2339', 'e', '5635', 'E', '3901', '9565', '1885', 'z', 'V', '6523', 'Y', '5127', 'T', '7723', 'a', '4481', '4165', '493', '243', 'w', '1365', 'm', 'y', 'M', 'Y', 'p', 'g', 'E']

44814165493243w1365m