Solve problem 64 using C++ and Go.