Puzzles/Logic puzzles/Getting out of Prison 2

Puzzles | Logic puzzles | Getting out of Prison 2

You are in a prison and your execution is planned for today. However, you are given one last chance to get out of this situation. You are brought into a room that has two exits and between them stands a guard. One exit leads out of the prison into freedom, while the other one brings you into the room where the execution takes place. You are told that the guard either always tells the truth or always lies, but not which it is that he does. You are allowed to ask only one question.

What question can you ask in order to find out the way to your freedom?

Solution