golfed problem 16