Gil Zilberfeld led an exercise to demonstrate test-driven development (TDD) principles by having participants work in pairs and groups to build different components of a spaceship. The exercise involved several rounds of writing tests first before code, refactoring tests and code together, and having one group write tests without seeing the code another group would write. The goal was to learn different aspects of TDD through an engaging collaborative activity and discussion of lessons learned.