Solve problem 52 using Clojure.