Add problem 26 c++ solution