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, 12, ['8179', 'C', '81', 'i', 'Y', 'P', '7409', 'T', '9191', 'd', '2795', '9509', 'M', '1803', '8579', 'c', '1577', 'J', 'N', '6687', 'q', 'Z', 'P', '8919', 'A', 'q', 'q', 'q']

9509