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: 6, 20, ['957', 'm', '1041', 'D', '7265', '4397', '779', '1127', 'Q', 'H', 'B', '9407', 'a', '2389', 'n', '5215', '4605', '7073', '4431', 'S', 'Y', '8975', 'D', '2725', '4921']

43977791127QHB9407a2389n5215460570734431S