Also reported as LeetCode 636 Variant
LinkedIn coding question, reconstructed from 2 candidate reports (November 2025). The write-up includes a Python solution that passes 9 test cases.