Create SwapNodesinPairs.java