During the age of the medieval empires, when knights and barbarians fought against each others, a man was captured and sentenced to death for allegedly befriending barbarians. The king, however, wanted to give him another chance.
The king ordered him into a room with two doors and two guard. The he was told that one door leeds to freedom and the other to death and that one guard alway tells the truth and the other always lies.
Without knowing which guard is the honest one the prisoner is allowed to ask one question to one of the guards.
What will this question be to find the door to freedom?
You really don't want to figure out yourselve?
OK here you go
What will the other guard say is the door to death? then you go through there and you are free.