Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Using the length of the string and k, can you count the number of groups the string can be divided into?
Try completing each group using characters from the string. If there aren’t enough characters for the last group, use the fill character to complete the group.