One of the 2 leftmost?
If the guy on the far left can see 2 hats the same in front, he can obviously shout what colour his hat is.
If he doesnt shout, the guy in front of him knows that the guy behind can see 2 different hats, so he will know the colour of his own hat.
...but this relies on them being able to communicate with each other, so it would be easier to just ask the guy behind what colour their hat is.
If the guy on the far left can see 2 hats the same in front, he can obviously shout what colour his hat is.
If he doesnt shout, the guy in front of him knows that the guy behind can see 2 different hats, so he will know the colour of his own hat.
...but this relies on them being able to communicate with each other, so it would be easier to just ask the guy behind what colour their hat is.