This question was asked in an interview at Apple
Profile: Software engineer
Question: If you have 2 eggs, and you want to figure out what's the highest floor from which you can drop the egg without breaking it, how would you do it? What's the optimal solution?