Solve problem 99 using C++ and Go.