CME Group interview question

Compare string and reverse string