Infosys interview question

Basic questions and oops concepts