Zillow interview question

Leetcode data structure questions/ big O