Function rotate

Source
pub fn rotate(nums: &mut Vec<i32>, k: i32)