Solution to problem 5

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