C # program to remove the elements which appear more than k times from the array .
using System ; using System . Collections . Generic ; class GFG { static void RemoveElements ( int [ ] arr , int n , int k ) {