Flock Software interview question

DS problem based on hashing. SOLID Design Patterns.