Pregunta de entrevista de Pinterest

Hashing-type question with emphasis on time and space complexities