RetailMeNot interview question

Bitwise manipulation