Back to the Problem
Two-pointer overwrite (or emit values differing from the previous one).
Complexity: O(N)