Infosys Interview Question

Basic oops concept. STL knowledge