Also reported as LeetCode 261
LinkedIn coding question, reconstructed from 1 candidate report (December 2025). The write-up includes a Python solution that passes 4 test cases.