Wayfair Interview Question

how would you go about this specific scenario?