euler question 1 solution

solution to euler Q1