Fahim Karim's submission of Chain Reaction | CodeChef