CME Group interview question

Problems were focused on basic string manipulation