Manish Pathak's submission of Chain Reaction | CodeChef