Jane Street interview question

tossing balls and calculating expected values.