/**
* @param {string} s
* @param {number} k
* @param {character} fill
* @return {string[]}
*/
var divideString = function(s, k, fill) {
const result = []
for(let i=0; i<s.length; i+=k) {
const item = s.slice(i, i+k)
item.length === k ? result.push(item) : result.push(item.padEnd(k, fill))
}
return result
};