Pregunta de entrevista de Jane Street

Math questions, logic reasoning, etc.