Why test case is failing
hello @ayushwahi3005
a) use long long for both the array and function return type
b)

here it should test case number instead of n.
thanku the issue was testcase number
hello @ayushwahi3005
a) use long long for both the array and function return type
b)

here it should test case number instead of n.
thanku the issue was testcase number