Added naive solution to first arithmetic problem 31