Add problem 71 c++ solution