Infosys interview question

C++, oops, coding, algo, DS