Prisoner's Hat (Binary)

Easy logic-puzzles interview practice: Prisoner's Hat (Binary).

Explore this problem with a Quantercise subscription.