Jane Street Interview Question

expected value and probability