fn has_repeat_with_gap(input: &str) -> bool