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: 7, 14, ['p', 'i', '2221', 'D', '3009', '8271', 'p', '3143', 'J', 'l', '7931', 'W', 'Y', '3031', 'O', '7619', 'W', 'Q', '5821']

p3143Jl7931WY3031