C++ | StringStream
```   \nstring largestWordCount(vector& m, vector& s) {\n        string ans;\n        int Maxcnt=0;\n        unordered_map umap;\n\n        for(int i=0;i>word){
```   \nstring largestWordCount(vector<string>& m, vector<string>& s) {\n        string ans;\n        int Maxcnt=0;\n        unordered_map<string,int> umap;\n\n        for(int i=0;i<s.size();i++){\n            stringstream ss(m[i]);\n            string word;\n            int cnt=0;\n            while(ss>>word){\n                cnt++;\n            }\n            int k=cnt;\n            cnt+=umap[s[i]];           // taking previous counts\n            if(cnt>Maxcnt){\n                ans=s[i];\n                Maxcnt=cnt;\n            }\n            else if(Maxcnt==cnt){\n                if(s[i]>ans) ans=s[i];\n            }\n            umap[s[i]]+=k;\n        }\n        return ans;\n }\n
['C']