SquarePoint interview question

Conditional probability, monte carlo simulation when I could not answer it