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: 12, 24, ['y', 'n', 'w', '7835', '5409', 'l', '5837', 'o', 'y', '4909', '2239', '5241', '8693', '2735', '6649', '347', '939', '3621', '6139', 'q', 'p', '5967', 'H', 'D', '7429', '8269', 'Z']

524186932735664934793936216139qp5967HD