Guess your colorLogic
Three Megaminds enter a room, one by one. Upon entrance, each Megamind is given a hat that can be white or black. Each Megamind can see the other two hats, but not his own. After they have spent 5 minutes in the room, the Megaminds are separated and asked the following question: "What is the color of your hat?" They can say "black" or "white" or simply refuse to answer. If nobody answers or if somebody gives a wrong answer, they will spend the rest of their lives in a dungeon. What should each Megamind do? What are the chances that they will be set free? There is no preliminary agreement or exchange of any information among them.