Infosys interview question

Every question was straight forward.