In this task, you are given inputs 'i', 'j', and A, where 'i' and 'j' are integers and A is a list. A list is shown by two brackets and comma-separated numbers and characters inside, like ['1', '12', 'l']. You need to concatenate all elements of A from the ith element to the jth element, and then reverse the resulting 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'. Perform the operations in order, i.e., do not reverse first and then concatenate.
--------
Question: 4, 16, ['S', '5719', '173', 'P', 'a', '5791', 'e', '6279', 'q', '2585', '9533', 'r', '849', 'h', '3259', '3707', '4939', 'X', 'e']

Answer: 70739523h948r33595852q9726e1975aP


Question: 1, 3, ['6017', 'o', '1817', 'W']

Answer: 7181o7106


Question: 11, 12, ['n', '8991', 'Z', '4113', '1623', '1351', 'l', 'p', 'T', '9931', '11', 'i', '1775', 'h', '7237', '8553', 'Q', 'U', '5395', '8727']

Answer:
i11