Add another C++ solution