Java code with basic understanding
\tclass Solution {\n    public String[] divideString(String s, int k, char fill) {\n        List ans=new ArrayList();\n        \n        int l=s.length()%k; //s
\tclass Solution {\n    public String[] divideString(String s, int k, char fill) {\n        List<String> ans=new ArrayList();\n        \n        int l=s.length()%k; //storing the remainder of length when divided with k\n        \n        if(l>0){\n\t\t//             adding the remaining letters\n\t\t\t\tfor(int i=1;i<=k-l;i++){\n\t\t\t\t\ts=s+fill;\n\t\t\t\t}\n\t\t\t}\n\t//         storing the required string in list\n\t\t\tfor(int i=0;i<s.length();i=i+k){\n\t\t\t\tint p=k;\n\t\t\t\tint j=i;\n\t\t\t\tString word="";\n\t\t\t\twhile(p>0 && j<s.length()){\n\t\t\t\t\tword+=s.charAt(j);\n\t\t\t\t\tp--;\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tans.add(word);\n\t\t\t}\n\t\t\tString str[]=new String [ans.size()];\n\t//         converting list to array\n\t\t\tfor(int i=0;i<ans.size();i++){\n\t\t\t\tstr[i]=ans.get(i);\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n
['Array', 'Java']