Nordstrom interview question

Caching, Multiple algorithmic problems make sure to refactor code and make more optimal