add the solution of remove duplicates from sort array 2 in leetcode