Solution to CodeChef's GolfCourse problem