change the function name to removeSameElementInCities