Project Euler - Problem 17