Ankur Kayal's submission of Chain Reaction | CodeChef