Cognizant interview question

internal implementation of Set and HashMap