Add description and solution in C++ of the same tree problem.