Capital One interview question

Parse string and design data structure with hash map.