Ivan Mistreanu's submission of A String Game | CodeChef