Genesys interview question

Bit manipulation