Implement `swap(pair)` that takes a two-element array `[a, b]` and returns `[b, a]` using destructuring.
Run your code to see results.