Wayfair interview question

A code challenge based on position.