Intuit interview question

Hashset and Hashmap declaration and working