Amazon Interview Question

They asked a leetcode medium level question involving hash maps