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: 1, 10, ['a', '77', 'f', '3189', 'w', '7765', '8295', 'S', '9775', 'g', 's', 'x', 'p', 'x', 'F', '9747', '5465', '5517', 'M', '4009', 'c', 'X', 'w', '879', '3189', 'e', '7261', 'L']

a77f3189w77658295S9775g