Infosys Interview Question

They asked about oops