Domanda di colloquio di Hudson River Trading

Probability / statistics questions, programming puzzle