solve remove duplicates from sorted array, remove element and strstr