Pergunta de entrevista da empresa Joom

Several problems on conditional probability.