Infosys interview question

Basic cpp oops concepts and sql