Sponsored
Solve with full IDE support and test cases
Use these hints if you're stuck. Try solving on your own first.
Using a brute force approach, check each index until a substring satisfying the k-constraint is found, then increment.