PayPal interview question

swap consecutive bits in a byte