Solve problem 55 using C++ and Go.
Fix formatting.