rewrite leetcode remove dup from sorted list i ii