Delivery Hero Interview Question

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