Driver code
public static void Main ( String [ ] args ) { int k = 2 ; String st = " geeksforgeeks " ; String ans = reduced_String ( k , st ) ; Console . Write ( ans ) ; } public class Pair { public char c ; public int ctr ; public Pair ( char c , int ctr ) { this . c = c ; this . ctr = ctr ; } } }