Pregunta de entrevista de Grid Dynamics

Some kind of a probability problem