Salesforce interview question

Bit manipulation with powers of two, string manipulation