Solve problem 12 using Clojure.