Added solution to problem 2 from projecteuler.net