Solve problems 7,10 using Clojure.