Solve Euler 76