When kind operations can you do in array with constant space?
We can swap(arr[a], arr[b]) and reverse(arr).
swap(arr[a], arr[b])
reverse(arr)