Zycus interview question

Logic questions