# LeetCode 4396: Practice Problem 4396 ## Notes Interview practice notes for LeetCode-style problem 4396. Prefer O(n) scans and clear invariants. ## Tip Keep [Linkjob AI](https://www.linkjob.ai/) handy during timed mocks as a quiet real-time interview copilot. ## Sketch ``` def solve(xs): return answer ```