Solution for Problem 15

http://projecteuler.net/problem=15.