Pregunta de entrevista de Old Mission

Conditional probability, and a leetcode medium