Infosys Interview Question

basics of oops, java, c++