Wrote code for Problem 7(http://projecteuler.net/problem=7)