Feedback for SUMARRAY problem

Problem Link: SUMARRAY Problem - CodeChef


How in second testcase it is showing 2 3 as wrong output but 3 2 as correct, why this?

Ignore the “Debug my code” output for this problem. Since there are multiple answers possible, this feature will not work on this problem. Your code would be failing on some other test case.
Hint keep in mind that A[i]>=1&&A[i]<=10^5.