Allan , Bertrand and Cecil were caught stealing so the king sent them to the dungeon.But the king decided to give them a chance .He made them stand in a line and put hats on their heads.He told them that if they answer the riddle ,they could go free ,but if they answered it wrong they will be killed.
NOW THE KING SAID: EACH of you has a hat on your head.YOU DO NOT KNOW THE COLOR OF THE HAT ON YOUR HAT. If one of you can guess the color of the hat on your head,i will let you free . But before you answer you must keep standing in this line.you cannot turn around or take off your hat.
HE GAVE THEM SOME HINTS:
THERE ARE ONLY BLACK HATS AND WHITE HATS. AT LEAST ONE HAT IS BLACK AND AT LEAST ONE IS WHITE.
BERTRAND CAN SEE THE HAT OF ALLAN BUT NOT OF CECIL
CECIL COULD SEE BERTRAND'S HAT AND ALLAN'S HAT BOTH.
TILL ONE MINUTE NO ONE SOLVED THE RIDDLE
BUT AFTER A SHORT WHILE BERTRAND SOLVED THE RIDDLE!!!! SAYING THAT HIS HAT WAS WHITE