Wrong answer and no test case passed

the test cases i tried for works fine .what am i missing

System.out.println(max_sum);

output format needs new line for each test case