Apple Interview Question

bit manipulation