Infosys interview question

Basic oops oriented coding questions