Infosys interview question

Good very. Easy questions medium