I am getting Runtime error (NZEC) in Java Anyone help please? (RADGEE)

I am trying for problem RADGEE and my solution is here My code is able to pass some custom cases I tried but, not able to pass any case. Please let me know what wrong in it. Thanks

I get a “403 - Access Denied” when I try to click this link.

Bcz it is an ongoing contest.

@koulick424 But the another problem of same contest has accepted my solution, so why not this?

Passing sample test case does not mean your solution is correct.

@koulick424 i want to know if my solution is correct or not, how can i check it?

Try making different test cases and observe your logic. Thats it