Pergunta de entrevista da empresa HCLTech

Interviewer told me to write code for iterating Hash map on paper