Driver code
static public void Main ( ) { long n = 6 , k = 3 ; string str = " aacaab " ; if ( distributingBalls ( k , n , str ) ) Console . WriteLine ( " YES " ) ; else Console . WriteLine ( " NO " ) ; } }