IMC Trading Interview Question

How would you design a c++ program that does this "blank"