Pergunta de entrevista da empresa Meta

First problem is usually string manipulation or arrays