add solution for remove duplicates from sorted array.