Nhật Quang Ngô's submission of Reduce to One | CodeChef