LinkedIn coding question, reconstructed from 1 candidate report (November 2025). The write-up includes a Python solution that passes 7 test cases.