Find the Bad Keg Fast

Identifying poisoned keg with servants is a medium quant interview question on Brain Teasers, reported to have been seen at Goldman Sachs, Jane Street, Old mission and Two Sigma.

Difficulty Medium Topic Brain Teasers Reported at Goldman Sachs, Jane Street, Old mission, Two Sigma

MyQuantPartner is not affiliated with, endorsed by, or sponsored by these companies, and all trademarks belong to their respective owners.

This brain teaser is about using a small number of risky tests to isolate a single bad choice among many. It forces you to think of people, outcomes, and time not in everyday terms, but as abstract carriers of information. That shift from narrative to structure is exactly what separates casual puzzle solving from serious quant prep, where you must reason cleanly under constraints.

It trains your intuition for information encoding, binary thinking, and designing experiments when each test is costly. You learn to quantify how much information each outcome provides and to structure scenarios so every possible pattern of results maps uniquely to a hidden state. This is the same mindset behind model diagnostics and systematic strategy design.

It matters for quant interviews because top firms want candidates who can turn vague stories into compact information problems. In real quant roles, especially in trading and risk, you constantly balance limited data, time, and risk budget while extracting maximum information. Problems like this reveal whether you can do that under pressure, making it a valuable part of any serious quant interview preparation.

What it tests

This class of problems is governed by the principle of information encoding, specifically using binary representations to maximize the information gained from a limited number of tests or outcomes. When you have $n$ independent testers (such as servants), each with two possible outcomes (alive or dead), you can distinguish among $2^n$ possibilities by assigning each possibility a unique binary code. The key is to design the experiment so that each possible outcome (who lives and who dies) maps one-to-one to a specific scenario (which barrel is poisoned). This approach is not about physically testing each possibility, but about using the testers as bits in a binary number, efficiently encoding the identity of the culprit among many candidates. The reason this works is that each tester's outcome provides one bit of information, and the combination of all testers' outcomes fully specifies the answer within the space of $2^n$ possibilities.

Practise this question with written feedback, or hear it in a spoken mock interview.

Get started free