Add solution to swap-nodes-in-pairs