Expedia Group interview question

Given an int array, remove the duplicates.