Wayfair interview question

Recommendation system. Fruit coding problem.