Pergunta de entrevista da empresa Zillow

It was a leetcode hard