Pregunta de entrevista de Parleto

Make a JavaScript for a problem. Included strings and data manipulation