Old Mission Interview Question

Conditional probability, and a leetcode medium