Infosys Interview Question

Basic of coding and oops concept