Amazon interview question

Easy-medium leet code with hashmaps