Pregunta de entrevista de Microsoft

HashMap based questions around occurrences