Pregunta de entrevista de StackAdapt

One design question and several standard algorithm/data structure questions.