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: 1, 10, ['p', '6871', '3121', 'k', 'X', '2839', '5285', '6941', 'c', '7875', '7177', 'H', 'A', '5295', 'T', '2363', '7323', 'W', 'M', '5115', '4697', '2777', '9255', '1245', '8213']

p68713121kX283952856941c7875