Rishabh Singhal's submission of The Gifting Problem | CodeChef