Fix formatting.
Solve problem 21 using C++.