Wayfair interview question

Class design