Java || Using Freq Array ||  Easy Straightforward Solution
UpVote if u find this Solution Useful\n\n\nclass Solution {\n    public boolean digitCount(String num) {\n        int[] freqArr = new int[10];  // n = 10 given 
***UpVote if u find this Solution Useful***\n\n```\nclass Solution {\n    public boolean digitCount(String num) {\n        int[] freqArr = new int[10];  // n = 10 given in constraints;\n        \n        \n        for(char ch : num.toCharArray()){\n            freqArr[ch-\'0\']++;\n        }\n        \n        for(int i=0;i<num.length();i++){\n            int freq = num.charAt(i)-\'0\';  //freq of each indexValue;\n            freqArr[i] = freqArr[i] - freq; \n        }\n        for(int i=0;i<10;i++){\n            if(freqArr[i]!=0){\n                return false;\n            }\n        }\n        return true;\n    }\n}\n```
['Java']