Microsoft interview question

The Celebrity Problem using graph approach