added array-based solution to problem 10 in clojure