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: 2, 19, ['7161', '5955', 'C', 'G', '7493', '5073', 'q', '8237', 'k', '8799', '9871', 'W', 'd', '5129', 'O', 'p', 'p', 'i', 'O', '8501', 'o', 'r', '7487']

5955CG74935073q8237k87999871Wd5129OppiO