Infosys interview question

oops concepts and design patterns