G-Research interview question

Compute conditional probabilities