Swap Nodes in Pairs: Interactive Visualizer
Swap adjacent nodes iteratively by keeping track of the previous node.