Pregunta de entrevista de Opendoor

An algorithm question which could be handled by a hashmap.