My Solution Java Simple
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```java []\nclass Solution {\n    public int numberOfSubstrings(String s, int k) {\n\n        int incr =0;\n        for(int i=0;i<s.length();i++)\n        {\n            int count[] = new int[26];\n            for(int j=i;j<s.length();j++)\n            {\n              \n                    count[s.charAt(j)-\'a\']++;\n                if(count[s.charAt(j)-\'a\']==k){\n                    incr=incr+(s.length()-j);\n                    break;\n                }\n            }\n        }\n        return incr;\n    }\n    boolean check(String str,int k)\n    {   \n       \n       for(int i=0;i<str.length();i++)\n        {\n          \n            return true;\n        }\n        return false;\n    }\n}\n```
['Java']