Rust Cyclic Rotation
fn cyclic_rotation(mut a: Vec<i64>, k: i64) -> Vec<i64> {
    let len = a.len();
    if len > 0 && k > 0 {
        let k = (k as usize) % len;
        a.rotate_right(k);
    }

    a
}

This rotates the array to the right by K steps and keeps the wrap-around values in the correct order.