Microsoft interview question

Easy bit manipulation problem.