Pregunta de entrevista de Flatiron Health

A question about string parsing