TransUnion interview question

based on array strings and hashmap