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, 12, ['2959', 'd', 'b', '6501', '3317', 'B', '8939', 'U', 'G', '4233', 'F', '2721', '3515', '1917', 'f', 'W', 'i', '7669', 'd', 'X', 'P', 'v', 'd', '1247', 'z', 'M', '2453', '3515']

db65013317B8939UG4233F2721