Solve problem 124 using Clojure.