Solved easy problem 40.