Anton Lunyov's submission of Connecting Soldiers | CodeChef