Pregunta de entrevista de Infosys

Related to oops and simple coding question