Meta interview question

Coding - bit manipulation question of a string