Condom Usage Puzzle for Three Men and One Woman
Condom sharing with limited condoms is a medium quant interview question on Brain Teasers.
This brain teaser describes an apparently impossible constraint-satisfaction problem involving safe interactions between multiple people with limited protective resources. The setup presents three men and one woman, with strict safety requirements between all pairings, but only a small number of barrier devices that cannot be cleaned, damaged, or duplicated. The candidate must reason about how to sequence and configure a small set of objects so that each participant remains protected according to the rules, despite the scarcity. It is a classic lateral-thinking and combinatorial puzzle often seen in interviews that want to test structured creativity rather than domain-specific finance or engineering knowledge.
Solving it leans heavily on resource reconfiguration, state tracking, and careful modeling of "clean" versus "contaminated" surfaces. Strong candidates explicitly label which surfaces have contacted which person and treat each barrier as having multiple usable states rather than a simple on/off usage. Interviewers watch for the ability to construct and maintain a consistent contamination model, to exploit symmetry and reversibility (such as turning things inside out or nesting them), and to check edge cases rigorously instead of hand-waving through the safety constraints.
What it tests
This problem class is governed by the principle of resource reconfiguration and state tracking. When a limited number of reusable objects (like `condoms`) must serve multiple pairings without cross-contamination, the solution space is defined by how the objects' states (clean/contaminated, inside/outside) can be manipulated. The key is to exploit symmetries and reversible properties (such as inversion or layering) to create new effective 'clean' surfaces, extending the utility of each object. The underlying pattern is to model each object's surfaces and their contact history, then sequence their usage so that each participant only contacts surfaces that are 'clean' relative to them. This approach generalizes to any problem where a finite set of protective barriers must be shared safely among multiple agents with constraints on contamination.
Practise this question with written feedback, or hear it in a spoken mock interview.
Get started free