Catching the Submarine

Hard logic-puzzles interview practice: Catching the Submarine.

Explore this problem with a Quantercise subscription.