C++ || easy to understand
\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        vector<string> v;\n        for(int i=0;i<s.size();i=i+k)\n  
```\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        vector<string> v;\n        for(int i=0;i<s.size();i=i+k)\n        {\n            string t=s.substr(i,k); // make substring of size atmost k\n           \n            if(t.size()==k)  // if size if k then push\n            {\n                v.push_back(t);\n                continue;\n            }\n\t\t\t\n            int l=t.size();  // if it is the last group and size if less than k\n            for(int j=0;j<(k-l);j++)  // add fill char to t to make size k\n                t+=fill;\n\t\t\t\t\n            v.push_back(t);\n        }\n        return v;\n    }\n};\n```
['C']