Pergunta de entrevista da empresa GTS

Write an order execution algo (i.e. buy low sell high)