Pregunta de entrevista de Orion Infosolutions

Javascript arrays and string manipulation question