Sample test case wrong for sub matrices with sum zero


#1

Sample test case is wrong. And see output gives the same wrong output for sample case. It makes me wonder if the solution might be wrong.