Jane Street Interview Question

tossing balls and calculating expected values.