Pergunta de entrevista da empresa Newton School

basically from array and strings