Solve problem 92 using C++ and Go.