Wayfair Interview Question

Case interview with math, graphs, etc