Pergunta de entrevista da empresa Zillow

Totally 2 problems and both are easy.