How to solve this type of questions?

How to solve the 8th question of quiz on perceptrons,under the section Neural Networks Challenge