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, ['U', 'P', 'g', '2437', '7239', '2799', 'Q', 'y', 'C', 'O', '1557', '2583', 'n', '7667', '5107', '4377', 'w', 'c', '8559', 'P', '135', 'j', 'O', '4543', 's', '6711', 'g']

2583n766751074377wc8559P135jO4543