Added solution for Problem 2 of Project Euler.