Samsara interview question

Technical: String parsing. Be comfortable with regex