problem 60 naive solution