Domanda di colloquio di Delivery Hero

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