Wayfair interview question

puzzle question