Wayfair interview question

A math problem