Microsoft interview question

Puzzle - 2 eggs problem