NZEC run time error

hey i m getting NZEC run time error while submtiing my code on codechef in java
though my java code running on my laptop and giving right answer but when submitting on codechef it giving me NZEC error
so help me out of this problem
here is the link

@dheeraj1995 : You should give a link to your solution , for us to help .

NZEC errors happens when your code throws and unhandled exception .

Sir here is the link