Java Code giving NZEC error

Hi My Java code gives NZEC error when submitting on CodeChef.
However it runs successfully for me with the correct result.

The problem is Golf Course problem:

My solution is:

Can any one please tell me what is wrong


I am also getting same issue.Have u solved it??