CME Group interview question

Had to complete various coding questions