update solution for leetcode Remove Duplicates from Sorted Array