
In a small village in the middle of nowhere, three innocent prisoners are sitting in a jail. One day, the cruel jailer takes them out and places them in a line on three chairs, in such a way that man C can see both man A and man B, man B can see only man A, and man A cannot see either of the other two prisoners. The jailer shows them five hats, two of which are black and three of which are white. After this, he blindfolds the men, places one hat on each of their heads, and then removes the blindfolds again. The jailer tells the three prisoners that if one of them can determine the color of his hat within one minute, all of them will be released. Otherwise, they will all be executed. None of the prisoners can see their own hat, and all are intelligent. After 59 seconds, man A shouts out the (correct) color of his hat!

The question: What is the color of man A's hat, and how does he know?

The solution: Click here!