Solve Euler problem 11