Pregunta de entrevista de Jane Street

Difficult functional programming questions.