Swap pairs of adjacent digits of a given integer of even length