Goldman Sachs Interview Question

Probability. Coding.