The Hat Puzzle (logic problem with unexpected connections to coding theory)
en.wikipedia.org