Sponsored
Use these hints if you're stuck. Try solving on your own first.
The constraints are low enough for a brute force approach.
Try every k value from 0 upwards until word is no longer k-repeating.
Solve with full IDE support and test cases