Next riddle in

Level 3/5

Hundred hats

There are 100 prisoners in line. Each one is randomly placed with a red or blue hat. Each prisoner can see the hats of everyone in front of him, but not his own or those behind him. Starting with the last person in the line and moving forwa…