Added solution to the problem 5 of projecteuler.