Finish euler problem 11