ARCITECH interview question

2. array in increasing order -> duplicates in an array. remove it and return the array.