Solve problem 27 using Clojure.