Pregunta de entrevista de MOBIETRAIN

Javascript, React, and an easy string algorithm question.