solution to Clojure quiz