Pregunta de entrevista de StubHub

Algorithm and Probability questions.