Pregunta de entrevista de Newton School

basically from array and strings