Question d’entretien chez Wayfair

Case interview. Solving for average.