Testcase1 failed

Previously, the first three test cases were failing. But, my doubt is related to test case 1… where my output was right but, test case still didn’t appear to be fulfilled.
Why is it so ?

Previous Code was entirely same except in my j-loop it was from j=0 to j<N-1
instead, of j<=N-1.
But, still, test case 1 should have get passed!