Pregunta de entrevista de Jump Trading

some whiteboard coding, some probability and tricky math problems