Solve problem 58 using Clojure.