Solve problem 37 using Clojure.