Added advanced solution in clojure