Shrine Software Interview Question

Declare hashmap, add elements and traverse it