Pergunta de entrevista da empresa Google

A question regarding marginal & conditional probability.