John has three cakes.  One cake is poisoned, and he knows which one.  What yes/no question can you ask John to find out which cake is poisoned?
In a prison, there are 3 doors and a ghost. It says one door leads to freedom, the other two lead to death. Allowed one Yes/No question, with the ghost always telling the truth, what may we ask to find freedom?