Driver Program
public static void main ( String [ ] args ) { CountKSubStr ob = new CountKSubStr ( ) ; String ch = " abcbaa " ; int k = 3 ; System . out . println ( " Total ▁ substrings ▁ with ▁ exactly ▁ " + k + " ▁ distinct ▁ characters ▁ : ▁ " + ob . countkDist ( ch , k ) ) ; } }