Problem 3 in clojure.