Ask either guard, “Which door would the other guard tell me leads to freedom?” Ask the honest one and he truthfully reports the liar’s lie. Ask the liar and he lies about the honest answer. Either way you get pointed at death, so take the other door.