Pergunta de entrevista da empresa Rudder Analytics

Question regarding array and strings.