Pregunta de entrevista de Two Sigma

debugging, fairly straightforward if you know data structures.