Code for problem "Remove Duplicates from Sorted Array".