Pregunta de entrevista de SquarePoint

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