Explain hash map internals and edge cases | Amazon Interview Question