Problem 5 in clojure.