Texas Instruments Interview Question

Swap bits at even and odd places.