Solve problem 123 using Clojure.