Driver Program
public static void Main ( ) { CountKSubStr ob = new CountKSubStr ( ) ; string ch = " abcbaa " ; int k = 3 ; Console . Write ( " Total ▁ substrings ▁ with ▁ exactly ▁ " + k + " ▁ distinct ▁ characters ▁ : ▁ " + ob . countkDist ( ch , k ) ) ; } }