Pergunta de entrevista da empresa CME Group

Write code to solve a problem problem. Done in pairs