C++ || Basic string understanding
\nclass Solution {\npublic:\n    int countPrefixes(vector<string>& words, string s) {\n        int cnt = 0;\n        int i, j;\n        for(i=0; i<words.size();
```\nclass Solution {\npublic:\n    int countPrefixes(vector<string>& words, string s) {\n        int cnt = 0;\n        int i, j;\n        for(i=0; i<words.size(); i++){\n            j = 0;\n            while(j< words[i].size()){\n                if(words[i][j] != s[j])\n                    break;\n                j++;\n            }\n            if(j == words[i].size())\n                cnt++;\n        }\n        \n        return cnt;\n    }\n};\n```
['C']