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, 18, ['4343', 'm', '6429', 'Z', '9931', 'R', 'W', 'G', '7771', 'v', '5959', 'T', '5867', '3461', 'C', '523', '2491', 'p', '1615', 'D', '9615', '5629', 'h']

WG7771v5959T58673461C5232491p