JavaScript is required for SkillDojo AI to work properly. Please enable JavaScript and refresh the page.
Coding Challenge · BEGINNER
Given an array of integers and a list of queries, each query consists of two indices: start and end. Your task is to return the sum of the elements between these indices, inclusive, for each query.