Pergunta de entrevista da empresa Optiver

Puzzle that can be found on their page.