Pergunta de entrevista da empresa Elastic Path

Refactoring task - had to explain my solution in 2nd technical interview.