Pregunta de entrevista de Susquehanna International Group

basic probability but requiring fast calculation