Pergunta de entrevista da empresa Twilio

Coding question about arrays and strings.