Infosys interview question

Basic oops concept design patterns concept