Capital One interview question

String manipulation/ hashmap manipulation and parsing