swapping the adjacent digits in a number