Solution:

A good question could be Is the liar in front of the door to freedom ?
  • If you ask it to the liar and if he is in front of the door to freedom, he will say NO.
  • If you ask it to the truthful man and if he is in front of the door to freedom, he will say NO.
  • If you ask it to the liar and if he is in front of the door to jail, he will say YES.
  • If you ask it to the truthful man and if he is in front of the door to jail, he will say YES.
Therefore you take the door of the man saying NO