added the solution for project euler problem 3