Bayatree Infocom interview question

Logical puzzles