Pregunta de entrevista de Jane Street

Maths based questions