The method returns the length but it check the int[];

my solution:

```
public int removeDuplicates(int[] nums) {
int result = nums.length;
for(int i = 0; i < nums.length - 1; i++){
if(nums[i] == nums[i+1]){
result--;
}
}
return result;
}
```