Remove Duplicat From an sorted array