Solve problem 35 using Clojure.