Pregunta de entrevista de CME Group

Had to complete various coding questions