Koichi Namekata's submission of The Gifting Problem | CodeChef