Solve Euler 89