kailash's submission of Chain of Doughnuts | CodeChef