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: 8, 8, ['c', 'v', '7965', 'E', '1927', 't', '6375', '7831', '5039', '125', 'J', '9949', '7269', 'n', '7497', '7255', '4719', 'g', '7379']

7831