function pairwiseSwap(number) {
  let swapped = number;

  for(let num = number, i = 1; num > 0; num >>= 2, i += 2) {
    swapped = bm.updateBit(swapped, i - 1, bm.getBit(num, 1));
    swapped = bm.updateBit(swapped, i, bm.getBit(num, 0));
  }

  return swapped;
}
5.7 Pairwise Swap: Write a program to swap odd and even bits in an integer with as few instructions as possible (e.g., bit 0 and bit 1 are swapped, bit 2 and bit 3 are swapped, and so on).

@param number