Pergunta de entrevista da empresa Optiver

Solving a data transferring problem (more like a math problem) by coding.