Pergunta de entrevista da empresa Voyager Portal

What’s the best way to refactor some functions