Infosys interview question

Asked some logical puzzles