A powerful entity disables the Enterprise and a Ferengi ship. Their only means of escape is if they can correctly answer the riddles he asks.
click here to see where to watch or (watch here).
Ready to Watch Star Trek The Next Generation, Season 1, Episode 5?