Add Problem 11 c++ solution