Solution of problem 6

https://projecteuler.net/problem=6