State Farm interview question

Related to string parsing and hash maps