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: 17, 21, ['8651', '3715', '7417', 's', '2435', '959', '9909', 'P', '8869', 'L', 'b', '8803', 'Q', '9287', 't', '3127', '3155', 'Y', '5619', 'P', '8873', 'S', '9557', 'G', '1041']

3155Y5619P8873