Can you help the man escape?
A man is standing in a room with three doors. Behind one door is a beautiful garden, behind another door is a ferocious lion, and behind the third door is a bottomless pit. The man is guarded by a three-headed dog, and he can only ask the dog one question. The dog is known to be a liar, and it will always answer the opposite of what is asked. How can the man escape the room?