Amazon coding question, reconstructed from 4 candidate reports (December 2025 to July 2026). Tests: sliding window, two pointers, string matching; hash-map counting, grouping and joins. Candidates reported 4 follow-ups. The write-up includes a Python solution that passes 7 test cases.