CME Group interview question

parallel programming and some optimization