C++ || Intuitive || HashMap
\n\nclass Solution {\npublic:\n    string largestWordCount(vector& messages, vector& senders) {\n        \n        string ans="";\n        map mp;\n        for(
```\n\n```class Solution {\npublic:\n    string largestWordCount(vector<string>& messages, vector<string>& senders) {\n        \n        string ans="";\n        map<string, int> mp;\n        for(int i=0; i<messages.size(); i++)\n        {\n            string s = messages[i];\n            for(int j=0; j<s.size(); j++){\n                if(s[j] == \' \')\n                    mp[senders[i]]+=1;\n            }\n            mp[senders[i]]+=1;\n        }\n        \n        int maxi = INT_MIN;\n        for(auto i: mp){\n            if(i.second >= maxi){\n                maxi=i.second;\n                if(i.first>ans)\n                    ans=i.first;\n            }\n        }\n        return ans;\n    }\n};
['C']