Amazon interview question

Solve this coding problem (related to dictionaries and counting).

Amazon Interview Question: Solve this coding problem (related to dictionaries and counting). | Glassdoor