Solve problem 65 using C++/Clojure/Go/Python.