Solve balancing brackets problem in 4clojure.com.