Jane Street interview question

marbles in jars: expected values and probability