kailash's submission of Chef and Balls | CodeChef