Pergunta de entrevista da empresa Old Mission

Conditional probability, and a leetcode medium