JAVA || EASY Solution
\nclass Solution {\n    public String[] divideString(String s, int k, char fill) {\n        int length=s.length()/k;\n        if(s.length()%k!=0) length++;\n   
```\nclass Solution {\n    public String[] divideString(String s, int k, char fill) {\n        int length=s.length()/k;\n        if(s.length()%k!=0) length++;\n        String[] ans=new String[length];\n        int i=0;\n        int idx=0;\n        while(i<s.length()){\n            if(i+k>s.length()){\n                StringBuilder str=new StringBuilder();\n                str.append(s.substring(i));\n                while(str.length()<k){\n                    str.append(fill);\n                }\n                ans[idx]=str.toString();\n                break;\n            }\n            ans[idx]=s.substring(i,i+k);\n            i+=k;\n            idx++;\n        }\n        return ans;\n    }\n}\n```
[]