Etsy interview question

They asked a string parsing question