getting NZEC with JAVA plz help

Hello, I am getting NZEC in the Question Tywins Tactics.

Submission

Please Help.