Java console application for Codigame.com challenges