Solution for Remove Duplicates from Sorted Array