Question d’entretien chez Cognizant

OOPS concept and gave code to solve