instruction:
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:
3, 7, ['P', 'P', 'H', 'r', '3563', 'n', 'M', '1577', '6453']
answer:
Mn3653rH


question:
8, 10, ['f', 'F', '4775', 'F', 'w', 'r', 'v', 'S', 'N', '479', 'e', 'u', 'e', 'e', '2081']
answer:
974NS


question:
18, 21, ['c', 'C', 'c', '5173', 'Q', 'D', 'f', 'X', '7707', '4085', '1057', '3347', 'X', '6749', 'd', '3395', 'i', 'T', '4943', 'D', 'w', 's', 'c', '7635', '2721', 'u', '9721', '3949']
answer:

wD3494T


