Powerful Search Box

Can You Solve The Prisoner Hat Riddle?