cpp Easy Solution
\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        int n;\n        if(s.length()%k==0)\n        {\n            
```\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        int n;\n        if(s.length()%k==0)\n        {\n            n=(s.length())/k;\n        }\n        else if(s.length()%k!=0)\n        {\n            n=(s.length()/k)+1;\n        }\n        string temp;\n        for(int i=0;i<n*k;i++)\n        {\n            if(i>=s.length())\n            {\n                temp.push_back(fill);\n            }\n            else \n            {\n                temp.push_back(s[i]);\n            }\n        }\n        vector<string>ans;\n        int idx=0;\n        while(idx<temp.length())\n        {\n            string a="";\n            int counter=0;\n            while(idx<temp.length() and counter<k)\n            {\n                a.push_back(temp[idx]);\n                counter++;\n                idx++;\n            }\n            ans.push_back(a);\n        }\n        return ans;\n        \n    }\n};\n```
['C', 'C++']