Pregunta de entrevista de Infosys

Technical stuff. But not difficult.