brute force C++ 100%
class Solution {\npublic:\n    bool digitCount(string num) {\n        int count=0;\n        bool ans=true;\n        for(int i=0;i<num.size();i++){\n            
class Solution {\npublic:\n    bool digitCount(string num) {\n        int count=0;\n        bool ans=true;\n        for(int i=0;i<num.size();i++){\n            for(int j=0;j<num.size();j++){\n                if((num[j]-\'0\')==i){\n                    count=count+1;\n                }\n            }\n            if((num[i]-\'0\')!=count){\n                ans=false; \n            }\n            count=0;\n        }\n        return ans;\n    }\n};
['String', 'C']