Project Euler Problem 14

Project Euler Problem 14