Jane Street Interview Question

Lots of expected value and probability