Microsoft interview question

Bit Manipulation Questions, Graph problem