Nordstrom interview question

Simple coding algorithms