TransUnion Interview Question

based on array strings and hashmap