(Interview Challenge) The Interview Phases and a Refactor Challenge

Facing a Refactor question, what I thought and what I think now.