Morgan Stanley Interview Question

What's the time complexity using Hashmap