Simple java solution
class Solution {\n\n    public boolean makeEqual(String[] w) {\n        int a[]=new int[26];\n        int i,j;\n        for(i=0;i<w.length;i++)\n        {\n    
class Solution {\n\n    public boolean makeEqual(String[] w) {\n        int a[]=new int[26];\n        int i,j;\n        for(i=0;i<w.length;i++)\n        {\n            for(j=0;j<w[i].length();j++)\n            {\n                a[w[i].charAt(j)-\'a\']++;\n            }\n        }\n        for(i=0;i<26;i++)\n        {\n            if(a[i]>0&&a[i]%w.length!=0)\n                return false;\n        }\n        return true;\n    }\n}
[]