Microsoft Interview Question

Easy bit manipulation problem.