Pregunta de entrevista de Netflix

simple probability problem + something about the uniform distribution