Wayfair interview question

Maths test