Adding P07 C++ solution.