java very easy to understand
\n public String[] divideString(String s, int k, char fill) {\n        while(s.length()%k!=0){\n\n            s+=fill;\n        }\n        String[] str=new Stri
```\n public String[] divideString(String s, int k, char fill) {\n        while(s.length()%k!=0){\n\n            s+=fill;\n        }\n        String[] str=new String[s.length()/k];\n        \n        int i=0;\n        int j=k;\n       for(int p=0;p<str.length;p++){\n           str[p]=s.substring(i,j);\n           i+=k;\n           j+=k;\n       }\n        return str;\n            \n        \n    }\n```
[]