BETA

Difficulty Level: Easy

Submissions: 664 Accuracy:

62.05%

Sum of given range (Function Problem)
         

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
0<=a,b

Example:
Input:

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

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Saksham Raj Seth


					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

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