BETA

Submissions : 262 Accuracy :

62.98

Sum of given range
       

You are given an Array. Your task is to complete the function getSum to return the sum of the given range a and b.

Input:
First line consists of T test cases. First line of every test case consists of 3 integers n,a and b ,denoting number of elements, lower range and higher range respectively. Second line consists of elements of array.

Output:
Return the sum value .

Constraints:
1<=T<=100
1<=N<=100
1<=a,b<=N

Example:
Input:

1
6 1 3
1 3 5 7 9 11
Output:
15

**For More Examples Use Expected Output**


Contributor: Saksham Raj Seth


					   
Result:
It is recommended to test your code before clicking 'Submit' button!



                   



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.