Goldman Sachs interview question

Conditional Probability and array programming questions.