Delivery Hero interview question

Remove 3 or more times repeated numbers in array without increasing space complexity