CME Group interview question

How would you improve an excerpt of code