Wayfair interview question

case study that required logic and math