S1E4 — The Last Outpost
Star Trek: The Next Generation — Season 1, Episode 4.

Stardate: 41386.4. 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.
View all episodes of Star Trek: The Next Generation