Amazon interview question

They asked a leetcode medium level question involving hash maps