Remove duplicates in a given sorted int array. Do it in-place