Infosys interview question

oops and data structure, basic questions