Amazon coding question, reconstructed from 3 candidate reports (November 2025 to March 2026). Tests: serialization and encoding; dynamic programming and backtracking. Candidates reported 4 follow-ups. The write-up includes a Python solution that passes 14 test cases.