Pregunta de entrevista de Infosys

Basic stuff but it was simple