Pregunta de entrevista de Google

Standard algorithm and data structure questions.