Wayfair Interview Question

A code challenge based on position.