Add solution for 'remove duplicates from a sorted array'.