Two Sigma interview question

bit manipulation