Cognizant interview question

Singleton Class in java String immutable internal working hashmap