The oldest interview in puzzles
You stand before two doors. One leads to freedom, the other to disaster. Two guards watch you: one always tells the truth, the other always lies, and you do not know which is which. You may ask one guard one question. What do you ask?
Asking directly seems useless - 'Is this the door to freedom?' gets a yes from the truthful guard if it is, but also a yes from the liar if it is not. The answer you receive is worthless because you cannot tell whether it passed through honesty or through lying. The fix is to make the answer pass through both.
Ask about the other guard
Point at a door and ask either guard: 'Which door would the other guard say leads to freedom?' Then choose the opposite door from the one indicated. If you happened to ask the truthful guard, he honestly reports the liar's answer - which is the dangerous door. If you asked the liar, he lies about the truthful guard's answer - and again points you at the dangerous door.
Notice what the trick does: it guarantees the answer contains exactly one lie, whichever guard you picked. You cannot remove the lie, so instead you make the lie predictable - and a predictable lie is as useful as the truth, because you can simply reverse it.
Try it yourself
Play it with two friends and two actual doors, one hiding a snack. One friend must answer truthfully, the other must lie, and the questioner gets a single question. Rotate roles; the liar's job is harder than it looks, because they must lie about the other guard's answer, not their own.
Then try to extend it: could one question handle three doors and one prize? Think about what the question would need to accomplish - you are really asking for a piece of information, and counting how much information one yes-or-no answer can carry is a puzzle in itself.

