Wayfair Interview Question

Maths test