This version of cheer solution.cpp is working.