Cognizant Interview Question

difference between HashMap and HashSet