Part 1. Definition
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.
Part 2. Example
1, 3, ['238', 'h', '92', 'U', '2799']
Answer: 29h832
Explanation: Here, concatenating all the elements between the 1st element and 3rd element and then reversing the string gives '29h832'.
Part 3. Exercise
7, 19, ['V', 'Y', 'B', '679', '3555', '3415', 'j', 'R', '8237', '281', 'h', 'h', 'm', '8175', '1015', 'q', '7929', 'l', 's', '7185', 'f', 'O', '9735', 'z', '513', '9493', 's', '4641', '5761', '3717']
Answer:
sl9297q51015718mhh1827328Rj