




Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use a three-layer loop to check all possible patterns by iterating through all possible starting positions, all indexes less than m, and if the character at the index is repeated k times.