Infosys interview question

Oops concepts and sql questions