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: 21, 22, ['P', '9873', '7885', '2541', 'K', '9543', 'u', '1503', '8913', 'n', '3983', 'b', '8161', '3687', 'a', 'f', '2225', 'u', '8265', '1199', '8795', 'g', '4645']

8795g