Swap odd and even bits in an integer

medium
Swap odd and even bits in an integer - Coding Problem | K5kC