Wayfair interview question

Case interview with math, graphs, etc