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, 20, ['x', '4771', 'Y', 'Y', 's', 'g', '1831', 'i', 'O', '7731', '4851', '8599', 'R', 'X', '2063', 'g', '1717', 'x', '6975', '4937', '7233', 'B', '9551', '6445', '9879', 'M']

8599RX2063g1717x69754937