Wayfair interview question

just some case study and calculation