Salesforce Interview Question

Bit manipulation with powers of two, string manipulation