Divide a String Into Groups of Size k
\'\'\'\nclass Solution {\npublic:\n    vector divideString(string s, int k, char fill) {\n        vector st;\n        while(s.size()%k!=0)\n            s+=fill;
\'\'\'\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        vector<string> st;\n        while(s.size()%k!=0)\n            s+=fill;\n        int count=0,i=0;\n        string res="";\n        while(i<s.size()){\n            for(int j=i;j<i+k;j++)\n                res+=s[j];\n            st.push_back(res);\n            res="";\n            i+=k;\n        }\n        return st;\n        \n    }\n};\n\'\'\'
['C']