Solution to problem 6

Solution for problem https://projecteuler.net/problem=6