CME Group interview question

Various string manipulation, hardest part again to format inputs, easy algos.