Slug: borrow-excl-02 · Paired reading: Chapter 6
Prompt
Implement fn swap_halves(a: &mut [i32]) that swaps a[0] with a[mid]
where mid = a.len()/2, for len >= 2. Use split_at_mut — do not index
twice with simultaneous &mut from the same slice.