Niyaz Nigmatullin's submission of A String Game | CodeChef