Pregunta de entrevista de Zillow

Basic algorithm and data Structures questions.