Cognizant interview question

OOps, Hashmap, Design Patterns