Find longest substring with at least k repeats | C3 AI