Super Simple || C++
Code\ncpp []\nclass Solution \n{\npublic:\n    int numberOfSubstrings(string s, int k) \n    {\n        int n=s.size(), cnt=0;\n        for(int x=0; x<n; x++)\n
# Code\n```cpp []\nclass Solution \n{\npublic:\n    int numberOfSubstrings(string s, int k) \n    {\n        int n=s.size(), cnt=0;\n        for(int x=0; x<n; x++)\n        {\n            map<char,int> m;\n            int flag=0;\n            for(int y=x; y<n; y++)\n            {\n                m[s[y]]++;\n                if(m[s[y]]==k)  flag=1;\n                if(flag) cnt++;\n            }\n        }\n        return cnt;\n    }\n};\n```
['C++']