Add solution for swap-nodes