Problem 3325 · Medium
From each start, count letters until one reaches k occurrences, then every later end also qualifies.
Open the interactive visualisation