Also reported as LeetCode 1152
Amazon coding question, reconstructed from 3 candidate reports (May 2026 to September 2026). Tests: hash-map counting, grouping and joins; parsing structured text. The write-up includes a Python solution that passes 9 test cases.