Easy c++ solution | Brute force
\nclass Solution {\npublic:\n    int prefixCount(vector<string>& words, string pref) {\n        int count = 0;\n        for(auto it : words){\n            bool 
```\nclass Solution {\npublic:\n    int prefixCount(vector<string>& words, string pref) {\n        int count = 0;\n        for(auto it : words){\n            bool flag = true;\n            for(int i=0;i<pref.size();i++){\n                if(pref[i] != it[i]) {flag = false; break;}\n            }\n            if(flag) count++;\n        }\n        return count;\n    }\n};\n```
['C', 'C++']