Add solution to remove duplicates from sorted array