Pergunta de entrevista da empresa Delivery Hero

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