Google Interview Question

bit manipulation