Another HAT puzzle.. provided by Rajesh
King want other variation of hat problem, so that he can kill more people.
So he invited(dragged) 4 people to death party named A, B, C and D.
A || B C D
He
placed wall between A and B, so that A and B can't see. Now he placed
hat on each one's head out of four hats where two are black and two are
white. No one can see what hat it is on there head. In order for person
to get released, they have to call out their hat color. If one of them
is wrong every is dead.
who will come out securely?