CME Group interview question

Programming to solve an optimization problem.