Pregunta de entrevista de Cognizant

Basic opps concept from java