Amazon interview question

Leetcode easy, something to do with hashmaps