Optiver interview question

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