Completed swapDigitPairs