text into chunks of length size: the first chunk is the first size characters, the second is the next size, and so on. Every character lands in exactly one chunk, and the order is kept.
If there are not enough characters left for the last chunk, append the character pad to its end as many times as needed to bring its length up to exactly size.
Return the list of chunks in order.text='sunflower', size=4, pad='z' → ['sunf', 'lowe', 'rzzz']
The first two chunks are "sunf" and "lowe". Only "r" is left for the third, so it gets three "z"s.
text='banana', size=2, pad='q' → ['ba', 'na', 'na']
The length 6 divides evenly by 2, so no padding is needed.
text='hi', size=5, pad='o' → ['hiooo']
The text is shorter than one chunk, which gives a single chunk "hiooo".
text consists of lowercase English letterspad is a single lowercase English lettertext='sunflower', size=4, pad='z'
['sunf', 'lowe', 'rzzz']
Run checks the first 3 tests in your browser. Submit checks all 106 tests on the server, hidden ones included.