KLA interview question

4 men balck and white hat problem