Hint 1
It goes without saying that you need to split up any lines of people wearing caps or people not wearing caps.
Here are 16 people standing in four rows of four.
By moving only two caps, find a way to create a chequerboard pattern of people with and without visible brown hair.
Of course, to meet this requirement, each row and column must contain an equal number of people with brown hair and without brown hair.

It goes without saying that you need to split up any lines of people wearing caps or people not wearing caps.
If you're low on caps, you'll need to find another solution.
Perhaps there's something you haven't noticed yet?
Swap a few hats that you haven't tried yet. If you think the puzzle is impossible, maybe the answer has yet to be uncovered.
Did you take off everyone's cap?
You should find one person with white hair. This is decidedly not brown. Can you use this person to create the chequerboard pattern you need?
Correct!
Someone with white hair was hidden among the rest. It was possible to evenly line up those with brown hair and those without after all.

Hints you open and puzzles you mark solved are kept in this browser.