review : dp: result[i] = result[j]+ judge s.substr(j,i-j) in dict