fn repeated(s: &str) -> Vec<[usize; 2]> {
    // your move
}