Pregunta de entrevista de Infosys

One programming question in JavaScript