TLG: wrong answer (java)

Hi all,
I am getting a “wrong answer” when I submit my solution for the TLG exercise but I honestly can’t see why it isn’t working. Could someone help me out? That would be greatly appreciated.

My attempt:
https://www.codechef.com/viewsolution/25494476

KR,
Brecht

Is there anyone who could help me further?