Pregunta de entrevista de Jane Street

mostly probability and logic problems