algo4: twopointers: Remove duplicates from sorted array II
    -- shortened version I