Cognizant interview question

difference between HashMap and HashSet