Flatiron Health Interview Question

A question about string parsing