Infosys Interview Question

oops and data structure, basic questions