Cognizant interview question

ways to iterate a HashMap