Pregunta de entrevista de Old Mission

Probability questions and leetcode medium