Goldman Sachs interview question

Coding + Probability + Stats.