Pregunta de entrevista de IMC Trading

Clever programming and algorithms questions.