Tripadvisor interview question

Bitwise operations