Pergunta de entrevista da empresa IMC Trading

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