Infosys Interview Question

Class extension