Compute urn-draw probabilities and expectations | MathWorks Interview Question