Microsoft Interview Question

Bit Manipulation Questions, Graph problem