add c++ solution to p2243