CME Group interview question

String reversal question