Add description and solution in C++ of triangle problem