Wayfair Interview Question

Class design