Like:1->2->3->4->5, then we swap 1 with 2, swap 3 with 4,but swap 5 with ???
Just do nothing on 5:
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.