CME Group interview question

Concepts regarding string manipulation etc