Problem 127, passes locally but too slow for 4clojure.com.