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: 16, 28, ['C', 'k', '5845', 'D', '5865', '8145', '2587', 'U', '2951', '5045', 'f', '2777', '2917', '4771', '5117', '491', '6833', 'S', '245', '8567', '1091', 'j', 'p', '3733', 'N', '2917', '8631', 'X']

4916833S24585671091jp3733N29178631X