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: 7, 24, ['Y', '7797', '3903', 'y', 'h', '7429', '4271', 'e', '5387', 'g', '5285', '6741', 'h', 'D', '1731', 'a', '7983', '7551', '2331', '9777', 'y', 'H', 'P', 'e']

4271e5387g52856741hD1731a7983755123319777yHPe