Infosys interview question

Basic oops concept. STL knowledge