Tanmay Datta's submission of Zombinatorial | CodeChef