Remove Duplicates From Sorted Array

Exercise from LeetCode, it is accepted