Pregunta de entrevista de Jane Street

Puzzles and some strategy problems