solve the remvo D
duplicatess from sorted array