Pregunta de entrevista de Hudson River Trading

String parsing and manipulation problems