The Keeper's Two Doors
You stand in a room with two doors. One leads to freedom and the other to a bottomless pit. In front of each door stands a guard. You know that one of them always tells the truth and the other always lies, but you don't know which is which.
You may ask only one question, to only one guard, and the answer will always be a plain "yes" or "no". Both guards know exactly which door leads to freedom.
What question would you put to either one of them to know for certain which door leads to freedom?
See solution
Pointing at one of the doors, you ask either guard: "If I asked the other guard whether this door leads to freedom, would they say yes?" If the answer is "no", that door is the way to freedom; if it is "yes", freedom lies behind the other door.
The reason is that every answer passes through one lie and one truth combined, so it always comes out inverted. If you ask the truthful guard, they faithfully report what the liar would say, which is false: the answer is the opposite of reality. If you ask the liar, they give you a false version of what the truthful guard would say, which is true: again, the answer is the opposite of reality. So you only need to flip what you hear.