Easy C++ Solution || logic building
Upvote if it helps you\n\n\n\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        vector<string> v;\n     \n      
**Upvote if it helps you**\n\n```\n\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        vector<string> v;\n     \n        int i=0;\n        while(i<s.length()){\n            int j=i+k-1;\n            if(j>=s.length()) break;\n            string str="";\n            while(i<=j){\n                str = str+s[i];\n                i++;\n            }\n            v.push_back(str);\n            \n        }\n         cout<<i;\n        if(i!=s.length()){\n            string str="";\n            while(i<s.length()){\n                str= str+s[i];\n                i++;\n            }\n            while(str.length()!=k){\n                str = str+fill;\n            }\n            v.push_back(str);\n        }\n        \n        return v;\n    }\n};\n\n```
[]