Pregunta de entrevista de Jane Street

brainteasers, probability. Typical trading interview.