Kotlin pad and chunk one-line function
\nclass Solution {\n    fun divideString(s: String, k: Int, fill: Char) = s.chunked(k) {it.padEnd(k, fill).toString()}\n}\n
```\nclass Solution {\n    fun divideString(s: String, k: Int, fill: Char) = s.chunked(k) {it.padEnd(k, fill).toString()}\n}\n```
['Kotlin']