Answer: White
3rd prisoner would know he has a white hat if the 2 in front of him are
black. He doesn't answer.
2nd prisoner now knowing that he and the prisoner in front of him do not
both have black hats looks to see the prisoner in front color hat. If it is black then he must have white. He doesn't answer.
1st prisoner now knows that he has a white hat on.