The longest substring in it with no more than K distinct characters