Wayfair interview question

2 algorithmic tasks and 1 ML task