Goldman Sachs Interview Question

Conditional Probability and array programming questions.