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: 3, 18, ['4841', 'U', 'o', 't', 'C', 'c', 'g', 'S', '161', '9667', 'F', '6543', 'k', '4089', '8819', '9053', '6489', '2647', 'U', 'g', 'r', '5321', 'S', '4961', 'Z', '6445', '859', 'c', '6965', 'l']

otCcgS1619667F6543k40898819905364892647