Completed Project Euler problem 15