Also reported as Rearrange Digits So Adjacent Digits Sum to at Most 9
Amazon phone-screen question, reconstructed from 2 candidate reports (August 2026). Tests: sorting with custom comparators. Candidates reported 3 follow-ups. The write-up includes a Python solution that passes 12 test cases.