Rivian Interview Question

Bit manipulation, swap adjacent bits of a number