Solve 10487 - Closest Sums.