Amazon Interview Question

Easy-medium leet code with hashmaps